Hello everyone, I installed & used the containerized CESM, specifically the cesm-2.2:tech preview, on my laptop. Now I'd like to install & use the same version on my organization's HPC, however, I'm having problem with the "./case.setup" step, which says ERROR: Undefined env var 'CESMDATAROOT'.
These are the steps I took:
These are the steps I took:
Sincerely,Step 1: mkdir -p /home/sysusr/projects/cesm
Step 2: export CESMDATAROOT=/home/sysusr/projects/cesm
Step 3: Create 'inputdata', 'archive' and 'cases' directory
mkdir -p $CESMDATAROOT/inputdata
mkdir -p $CESMDATAROOT/archive
mkdir -p $CESMDATAROOT/cases
Step 4: Install containerized version of CESM:
docker run -i --rm -v ${CESMDATAROOT}/inputdata:/home/user/inputdata -v ${CESMDATAROOT}/archive:/home/user/archive -v ${CESMDATAROOT}/cases:/home/user/cases \
-e CESMDATAROOT=${CESMDATAROOT} \
-p 8888:8888 \
-t escomp/cesm-2.2:tech_preview
Step 5: Create a CESM case:
cd /opt/ncar/cesm2/cime/scripts/
./create_newcase --case ${HOME}/cases/cQPC4 --compset QPC4 --res f45_f45_mg37 --machine container --run-unsupported
Step 6: Setting up the case
cd ${HOME}/cases/cQPC4
sudo ./case.setup