Building NorESM 1 Tetralith

From SNIC Documentation
Jump to: navigation, search

Short build instructions (NorESM1 on Tetralith):

1. Download NorESM1 source code (to the folder <noresm_source>). NorESM source code can be obtained after registration with the developers, see: Obtaining a version of the model

2. Copy:

/proj/cesm_input-data/tetralith_config_noresm1/Macros.tetralith
/proj/cesm_input-data/tetralith_config_noresm1/config_machines.xml
/proj/cesm_input-data/tetralith_config_noresm1/env_machopts.tetralith
/proj/cesm_input-data/tetralith_config_noresm1/mkbatch.tetralith

to <noresm_source>/scripts/ccsm_utils/Machines

3. Load modules:

module load buildenv-intel/2018.u1-bare netCDF/4.4.1.1-HDF5-1.8.19-nsc1-intel-2018a-eb

4. Create new case, e.g.

cd <noresm_source>/scripts
./create_newcase -case ../cases/casename -res f19_g16 -compset N2000AERCN -mach tetralith -ccsm_out /proj/bolinc/users/${USER}/NorESM1-out

Nb. -ccsm_out variable is required. This sets where the model is compiled and where output is written.

5. Go to case folder. Execute

./configure -case

6. Edit any env files you wish.

7. If not set, add:

export I_MPI_COMPATIBILITY=4

8. Build and run your model ($CASE.build & sbatch $CASE.run)