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

  1. The command

This command will launch the appropriated sloop binary depending on the argument given after compile

Compile commands

Compile argument

Binary called

ibc

sloop-croco-compile-ibc.py

model

sloop-croco-compile-model.py

  1. 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.

  1. 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

  1. 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
    
  2. Load your sloop environment (see env)

  3. Compile Extract

    sloop --novortex -c croco_med.cfg compile ibc
    
  4. Choose your MPI domain by editing croco_conf.cfg file

  5. Compile Croco model

    sloop --novortex -c croco_med.cfg compile model