Skip to content

10. Running NEMO (NEW)

jenjar93 edited this page Jul 22, 2022 · 2 revisions

1. Running the model

  • To run the model, ensure all files from $GITCLONE/RUN_START have been copied into the run directory ($EXP).

  • Copy/link the domain_cfg.nc, coordinates.nc and coordinates.bdy.nc to $EXP.

  • Edit the namelist_cfg file to turn parameters on/off and to add paths to the necessary directory.

  • Create a restarts directory in the $EXP directory, and store your ICS pseudo-restart there (named MYRESTART.nc in this example).

In the namelist_cfg file:

   cn_exp      =  "test_sanh"
   nn_it000    =  1           !  first time step
   nn_itend    =  100         !  last  time step
   nn_date0    =  19930101    !  date at nit_0000 (format yyyymmdd) used if ln_rstart=F or (ln_rstart=T and nn_rstctl=0 or 1)
   nn_time0    =       0      !  initial time of day in hhmm
   nn_leapy    =       1      !  Leap year calendar (1) or not (0)
   ln_rstart   = .true.       !  start from rest (F) or from a restart file (T)
      nn_euler    =    0      !  = 0 : start with forward time step if ln_rstart=T
      nn_rstctl   =    1      !  restart control ==> activated only if ln_rstart=T
      !                          !    = 0 nn_date0 read in namelist ; nn_it000 : read in namelist
      !                          !    = 1 nn_date0 read in namelist ; nn_it000 : check consistancy between namelist and restart
      !                          !    = 2 nn_date0 read in restart  ; nn_it000 : check consistancy between namelist and restart
      cn_ocerst_in    =  "MYRESTART"   !  suffix of ocean restart name (input)
      cn_ocerst_indir = "./restarts"   !  directory from which to read input ocean restarts
      cn_ocerst_out   = "restart"      !  suffix of ocean restart name (output)
      cn_ocerst_outdir = "./restarts"        !  directory in which to write output ocean restarts

And set ln_meshmask = .false.

Run the model:

sbatch job_run_short.slurm  

The example script is a "short" job script, meaning there is a cut-off time of 20 minutes (#SBATCH --time=00:20:00). This is designed for testing purposes only and kills the job if it exceeds the 20 minute run time. When confident the model runs as intended, extend the run time in the script - and, if necessary, correct the nodes/processors.

2. Troubleshooting

It is likely the model will not run first time. To source the cause of the error, it is highly recommended to test each forcing process separately.

Clone this wiki locally