...
2. Generate (or obtain pre-generategenerated) CLM gridfile in SCRIP format
...
export GRIDFILE=${CESM_INPUTDATA_DIR}/lnd/clm2/mappingdata/grids/SCRIPgrid_ne120np4_nomask_c101123.nc
3.
...
Preliminaries
...
for
...
mkmapdata
The mkmapdata script calls ESMF to generate mapping files. Some of the input data sets are very large and require a large memory footprint, so we need an ESMF built with MPI (note that the ESMF in the e3sm-unified conda environment will not work for this). One way to do this is to build our own. On cori or nersc, the following should be sufficient:
Code Block |
---|
# Source environment settings used when building/running E3SM
MACHINE=cori-knl
# Set paths needed to build ESMF
export ESMF_DIR=${HOME}/software/esmf
export ESMF_COMM=mpi
export ESMF_COMPILER=intel
export ESMF_INSTALL_PREFIX=${HOME}/software/esmf/${MACHINE}_${ESMF_COMPILER}_${ESMF_COMM}
export ESMF_NETCDF="split"
# Build
cd ${ESMF_DIR}
gmake clean
gmake
gmake install |
We then need to load additional modules and set environment variables for mkmapdata
:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
module load nco module load ncl export ESMFBIN_PATH=${ESMF_INSTALL_PREFIX}/bin/binO/Unicos.intel.64.mpi.default export REGRID_PROC=48 |
...
export MPIEXEC="srun -n ${REGRID_PROC} " |
...
export CSMDATA=/project/projectdirs/acme/inputdata |
...
4. Create mapping files
4.1 First determine the mapping files that would be created by mkmapdata.sh by running the mkmapdata.sh script in "debug" and "verbose" mode to
...