4. Summary of essential steps#
- Compilation
CROCO needs to be compiled for each configuration (grid, MPI decomposition, paramterizations…). The files that need to be edited are (available in croco/OCEAN directory):
cppdefs.h
CPP-keys* allowing to select configuration, numerical schemes, parameterizations,forcing and boundary conditions* CROCO extensively uses the C preprocessor (cpp) during compilation toreplace code statements, insert files into the code, and select relevantparts of the code depending on its directives.param.h
Grid settings: the values of the model grid size are:LLm0 points in the X directionMMm0 points in the Y directionN vertical levelsFor realistic regional cases, LLm0 and MMm0 are given by runningmake_grid.m
,and N is defined incrocotools_param.m
param.h
also contains: Parallelisation settingsTides, Wetting-Drying, Point sources, Floats, Stations specificationsjobcomp
the compilation script (including settings for paths, compilers, libraries, etc)
- Namelist
CROCO namelist input file
croco.in
contains several configurations settings such as: the time stepping, the vertical coordinate settings, the I/O settings and paths, some parameters for the model, … It has to be edited before running. It is available in croco/OCEAN directory for regional configurations, and in croco/TEST_CASES directory for test cases.
- Input files
CROCO needs the following input files to run:
CROCO grid file:
croco_grd.nc
CROCO surface forcing file:
croco_frc.nc
(orcroco_blk.nc
)CROCO vertical boundary conditions:
croco_bry.nc
(orcroco_clim.nc
)CROCO initial conditions:
croco_ini.nc
They can be created using the Preprocessing croco_tools, see dedicated tutorial. These files are eventually not mandatory in test cases for which the useful settings are defined analytically within the CROCO code.
- Run
CROCO can be run in serial or parallel mode. See the run tutorial.
- Outputs
CROCO usual outputs are:
CROCO restart file:
croco_rst.nc
CROCO instantaneous output file:
croco_his.nc
CROCO averaged output file:
croco_avg.nc
CROCO log file:
croco.log
if you have defined the LOGFILE key in cppdefs.h : # define LOGFILE
Other output files can be generated depending on the settings provided in
croco.in
.