Pre-required
Get the Code
The E3SM code is available from Github.
We only support obtaining the code with “git clone“. You need at least version 2.0 or later of git.
For access to all code versions, add an ssh key to github. We will not be making .tar.gz or .zip files available at this time.
Open a terminal and issue the following commands: Pre-required
- Add an ssh key to github
Load the key into the ssh agent
ssh-add ./id_ed25519
ssh-add -l
cd ~/Documents
git clone -b <ref> --recursive https://github.com/E3SM-Project/E3SM.git
where <ref> is one of the following:
maint-1.0
maint-1.1
maint-1.2
maint-2.0
maint-2.1
mkdir -p $HOME/Documents/E3SM/cesm-inputdata
docker run -it \
--mount type=bind,source=$HOME/.ssh,target=/home/e3sm/.ssh \
--mount type=bind,source=$HOME/Documents/E3SM,target=/home/e3sm/Documents/E3SM \
--hostname singularity \
--shm-size=512m \
lukaszlacinski/e3sm:2021.03.19 /bin/su - e3sm
grep -rni “text string” .
./cime/config/e3sm/machines/userdefined_laptop_template/config_machines.xml
cd E3SM/cime/scripts/
Running with run_e3sm script
Instructions for E3SM v1.0
wget https://web.lcrc.anl.gov/public/e3sm/run_e3sm.DECKv1b_piControl.ne30_oEC.cori-knl.csh
chmod +x run_e3sm.DECKv1b_piControl.ne30_oEC.cori-knl.csh
If you want to keep all the default settings (a reasonable first choice), you can then simply execute it:
./run_e3sm.DECKv1b_piControl.ne30_oEC.cori-knl.csh
https://www.nersc.gov/users/accounts/allocations/first-allocation/
New Test
docker run -it \
--mount type=bind,source=$HOME/.ssh,target=/home/e3sm/.ssh \
--mount type=bind,source=$HOME/projects/e3sm,target=/home/e3sm/projects/e3sm \
--hostname singularity \
--shm-size=512m \
lukaszlacinski/e3sm:2021.03.19 /bin/su - e3sm