Skip to content

Commit

Permalink
Gricad with fluiddyn
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jul 22, 2024
1 parent 8edce5d commit 837f69e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 448 deletions.
30 changes: 24 additions & 6 deletions doc/examples/clusters/gricad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,43 @@ python3 -m pytest --pyargs fluidsim
## Submit a Fluidfft benchmark

```sh
source /applis/site/guix-start.sh
cd ~/dev/fluidsim/doc/examples/clusters/gricad
oarsub -S ./job_fluidfft_bench.oar
```

## Submit a Fluidsim benchmark

### Hand written OAR script

```sh
source /applis/site/guix-start.sh
cd ~/dev/fluidsim/doc/examples/clusters/gricad
oarsub -S ./job_fluidsim_bench.oar
```

or
### With fluiddyn

Prepare a virtual env (1 time).

```sh
# cd ~/dev/fluidsim/doc/examples/clusters/gricad
# /usr/bin/python3 -m venv .venv
# . .venv/bin/activate
# Actually, we need conda because the package python3.11-venv is not installed.
source /applis/environments/conda.sh
conda create -n env-fluiddyn python=3.11
conda activate env-fluiddyn
#
pip install fluiddyn@hg+https://foss.heptapod.net/fluiddyn/fluiddyn
```

Submit with

```sh
cd ~/dev/fluidsim/doc/examples/clusters/gricad
/usr/bin/python3 -m venv .venv
. .venv/bin/activate
pip install fluiddyn
# . .venv/bin/activate
# actually, with conda:
source /applis/environments/conda.sh
conda activate env-fluiddyn
#
python3 submit_bench_fluidsim.py
```
85 changes: 0 additions & 85 deletions doc/examples/clusters/gricad/ciment.py

This file was deleted.

2 changes: 1 addition & 1 deletion doc/examples/clusters/gricad/dev_print_oar_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ciment import DahuGuixDevel as Cluster
from fluiddyn.clusters.ciment import DahuGuixDevel as Cluster

cluster = Cluster()

Expand Down
Loading

0 comments on commit 837f69e

Please sign in to comment.