-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare
executable file
·31 lines (20 loc) · 933 Bytes
/
prepare
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
. /usr/local/anaconda/etc/profile.d/conda.sh && conda activate
echo $CASENAME
mkdir -p $HOME/.cime
cp -r /opt/esm/.cime/* $HOME/.cime
sed -i -e "s/TASKS_PER_NODE>128/TASKS_PER_NODE>$SLURM_NTASKS_PER_NODE/g" $HOME/.cime/config_machines.xml
cp /opt/esm/config_pes.xml /opt/esm/archive/auto_config_pes.xml
sed -i -e "s/-1/-$SLURM_JOB_NUM_NODES/g" /opt/esm/archive/auto_config_pes.xml
cd /opt/esm/$MODEL/cime/scripts
./create_newcase --case /opt/esm/archive/cases/$CASENAME --compset $COMPSET --res $RES --machine $MACHINE --run-unsupported --handle-preexisting-dirs r --pesfile /opt/esm/archive/auto_config_pes.xml
cd /opt/esm/archive/cases/$CASENAME
./xmlchange STOP_N=$STOP_N
./xmlchange STOP_OPTION=$STOP_OPTION
ln -s /usr/bin/make gmake
export PATH=$PATH:$PWD
./case.setup
./case.build --skip-provenance-check
mkdir -p /opt/esm/work/$CASENAME/run/timing/checkpoints
./check_input_data --download
./check_case