41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# /bin/bash
|
|
|
|
## initial project
|
|
# git clone https://github.com/ESCOMP/cesm
|
|
# git clone https://github.com/ESCOMP/ctsm
|
|
casename=year2019 # test
|
|
|
|
dir_cime=/model/ctsm/cime
|
|
|
|
|
|
## 1. create_newcase
|
|
${dir_cime}/scripts/create_newcase --case $casename --res f19_g16 --compset I1850Clm50Bgc --run-unsupported \
|
|
--compiler gnu --mach shudmach
|
|
|
|
cd $casename # year2019
|
|
|
|
# # setup YR_START and YR_END
|
|
# ./xmlchange DATM_CLMNCEP_YR_START=2000,DATM_CLMNCEP_YR_END=2000
|
|
# ./xmlchange NTASKS=2
|
|
|
|
## CLM5 configure
|
|
# ROOT_INPUT=/inputdata # ${HOME}/cesm
|
|
# ROOT_CLMFORC=${ROOT_INPUT}/atm/datm7 # lmwg #
|
|
|
|
./xmlquery DATM_CLMNCEP_YR_START,DATM_CLMNCEP_YR_END
|
|
./xmlchange DATM_CLMNCEP_YR_START=2010,DATM_CLMNCEP_YR_END=2010
|
|
./xmlquery NTASKS
|
|
./xmlchange NTASKS=2 #[核心数]
|
|
./xmlquery DIN_LOC_ROOT,DIN_LOC_ROOT_CLMFORC
|
|
./xmlchange DIN_LOC_ROOT=${ROOT_INPUT},DIN_LOC_ROOT_CLMFORC=${ROOT_CLMFORC}
|
|
|
|
./xmlquery STOP_N
|
|
./xmlquery STOP_OPTION
|
|
|
|
./xmlchange STOP_N=14,STOP_OPTION=ndays
|
|
|
|
## build and submit task
|
|
./case.setup
|
|
./case.build
|
|
./case.submit
|