Skip to content

Commit fd620a5

Browse files
authored
gen custom_pelayout, better case loc, and default proj
1 parent 7581ae0 commit fd620a5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

run_e3sm.template.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ main() {
1515
# Machine and project
1616
readonly MACHINE=pm-cpu
1717
# BEFORE RUNNING: CHANGE this to your project
18-
readonly PROJECT="e3sm"
18+
readonly PROJECT="$(sacctmgr show user $USER format=DefaultAccount | tail -n1 | tr -d ' ')"
1919

2020
# Simulation
2121
readonly COMPSET="WCYCL1850"
@@ -43,7 +43,7 @@ readonly GET_REFCASE=TRUE
4343
#readonly RUN_REFDATE="" # same as MODEL_START_DATE for 'branch', can be different for 'hybrid'
4444

4545
# Set paths
46-
readonly CASE_ROOT="${PSCRATCH}/e3sm-scratch/${MACHINE}/${CASE_NAME}"
46+
readonly CASE_ROOT="${PSCRATCH}/E3SMv3/${CASE_NAME}"
4747
readonly CODE_ROOT="${HOME}/E3SMv3/code/${CHECKOUT}"
4848

4949
# Sub-directories
@@ -417,6 +417,12 @@ then
417417
# Number of cores per node (machine specific)
418418
if [ "${MACHINE}" == "pm-cpu" ]; then
419419
ncore=128
420+
elif [ "${MACHINE}" == "chrysalis" ]; then
421+
ncore=64
422+
elif [ "${MACHINE}" == "compy" ]; then
423+
ncore=40
424+
elif [ "${MACHINE}" == "anvil" ]; then
425+
ncore=36
420426
else
421427
echo 'ERROR: MACHINE = '${MACHINE}' is not supported for custom PE layout.'
422428
exit 400

0 commit comments

Comments
 (0)