6. Sloop compile : Compile preproc tools and model
Once the static data are placed in cache by sloop constants get-novortex
,
the Fortran sources of the application can be compiledd.
To do so, use sloop compile.
Description
The command
This command will launch the appropriated sloop binary depending on the argument given after compile
Compile argument |
Binary called |
---|---|
ibc |
sloop-croco-compile-ibc.py |
model |
sloop-croco-compile-model.py |
Notes and templates
The ibc and model sources are compiled in the SLOOP src directory ($DATAWORK/SLP_SRC/sloop/src/CROCO)
The compilation options are set in the configuration file {vapp}_{vconf}.ini located in conf directory in a dedicated section which starts with compile_. The compilation options start with env_.
Templates of CROCO compilation files are located in the TPL directory : feel free to modify it before compilation if you need change compilation keys for instance
Warning
sloop compile
has to be executed in the directory of the experiment
created by sloop init
.
Syntax
The Syntax is given here :
$ sloop compile --help
usage: sloop compile [-h] {ibc,model,spnudge,postprod,all}
positional arguments:
{ibc,model,spnudge,postprod,all}
what to compile
optional arguments:
-h, --help show this help message and exit
What to do on Datarmor
Be sure to be logged on a interactive node and not on the loggin node
qsub -X -I -l mem=20g -l walltime=02:00:00
Load your sloop environment (see env)
Compile Extract
sloop --novortex -c croco_med.cfg compile ibc
Choose your MPI domain by editing croco_conf.cfg file
Compile Croco model
sloop --novortex -c croco_med.cfg compile model