6. Preparing a regional configuration#
To prepare your configuration working directory, you can use the script create_config.bash provided in CROCO sources:
cp ~/croco/croco/create_config.bash ~/CONFIGS/.
Edit your paths and settings in create_config.bash:
#==========================================================================================
# BEGIN USER MODIFICATIONS
# Machine you are working on
# Known machines: Linux DATARMOR IRENE JEANZAY
# ---------------------------------------------
MACHINE="Linux"
# CROCO parent directory
# (where croco_tools, croco_pytools and croco source directories can be found)
# -----------------
CROCO_DIR=~/croco/croco
TOOLS_DIR=~/croco/croco_tools
PYTOOLS_DIR=~/croco/croco_pytools
# Configuration name
# ------------------
MY_CONFIG_NAME=BENGUELA_LR
# Home and Work configuration directories
# ---------------------------------------
MY_CONFIG_HOME=~/CONFIGS
MY_CONFIG_WORK=~/CONFIGS
# Options of your configuration
models_incroco=( all-prod )
Run create_config.bash:
./create_config.bash
A directory named BENGUEAL_LR should be created.
You can also manually create your configuration directory, by copying the required files from croco sources:
mkdir ~/CONFIGS/BENGUELA_LR
cd ~/CONFIGS/BENGUELA_LR
# For compiling
cp ~/croco/croco/OCEAN/cppdefs.h .
cp ~/croco/croco/OCEAN/param.h .
cp ~/croco/croco/OCEAN/jobcomp .
# For running
cp ~/croco/croco/OCEAN/croco.in .
In your configuration working directory, you need at least the following files:
For compiling:
param.h
cppdefs.h
jobcomp
For running:
croco.in