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.hCPP-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.hGrid 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 incroco_tools : by runningmake_grid.mor in croco_pytools : by runningmake_grid.pyN is defined incrocotools_param.mor ibc.ini (IBC_Sigma_params)param.halso contains: Parallelisation settings,Tides, Wetting-Drying, Point sources, Floats, Stations specificationsjobcompthe compilation script (including settings for paths, compilers, libraries, etc)
- Namelist
CROCO namelist input file
croco.incontains 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.ncCROCO 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 Tools (Matlab croco_tools or Python croco_pytools), see dedicated tutorials. 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.ncCROCO instantaneous output file:
croco_his.ncCROCO averaged output file:
croco_avg.ncCROCO log file:
croco.logif 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.