Skip to content
Snippets Groups Projects
Commit c3d7688f authored by Gab's avatar Gab
Browse files

modified exemple as defined during today's team meeting

parent ddffa4d4
No related branches found
No related tags found
No related merge requests found
......@@ -44,12 +44,13 @@ For instance:
Compile the code using:
```
source machines/occigen-bdw/env
./compile.sh
./compile.sh occigen-bdw
```
`machines/occigen-bdw/env` contains the information for compilation (module load gcc openmpi lapack hdf5 ...)
You can create your own machine directory under `machines` to define the appropriate environment.
Run and validate the simulation:
--------------------------------
......@@ -62,7 +63,7 @@ For each test case, given in a separate folder (e.g. testcase_small), you can fi
For running and validating the simulation, one should be able to do:
```
cd testcase_XXX
./prepare.sh
./prepare.sh occigen-bdw
./run.sh
./validate.sh
```
......
#!/bin/bash
if [ -z "$1" ]
then
echo "Please provide the targeted machine from:"
ls machines/
echo ""
echo "Example: ./compile.sh occigen-bdw"
exit 1
fi
env_file="machines/$1/env_bench"
if [ ! -f $env_file ]
then
echo "ERROR: $env_file not found!"
exit 1
else
source $env_file
fi
#Here give compilation info
#!/bin/bash
if [ -z "$1" ]
then
echo "Please provide the targeted machine from:"
ls ../machines/
echo ""
echo "Example: ./prepare.sh occigen-bdw"
exit 1
fi
machine_dir="../machines/$1"
cp $machine_dir/env_bench .
cp $machine_dir/batch_small.slurm .
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment