Skip to content

Commit a5a3c95

Browse files
committed
Get SPL working
1 parent 790d13c commit a5a3c95

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

scripts/Testing/Testcases/SPL_script

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,25 @@ if ($?COMPARE_BASELINE ) then
1313
set COMPARE_THROUGHPUT
1414
endif
1515

16-
#--- clone the main case to create ref1 case
16+
#--- clone the main case to create ref1 case to spinup with
1717
set CASER0 = ${CASEROOT}.ref1
1818
set CASERR1 = ${CASEROOT}
1919
set CASE0 = ${CASE}
2020

21-
cd $CASER0
21+
cd $CIMEROOT/scripts
22+
rm -r -f ${CASER0}; ./create_clone -case ${CASER0} -clone ${CASERR1}
23+
24+
cd $CASERR1
2225
set STOP_N = `./xmlquery STOP_N -value`
2326
set STOP_OPTION = `./xmlquery STOP_OPTION -value`
27+
set EXEROOT = `./xmlquery EXEROOT -value`
2428

2529
@ stopnf = ${STOP_N}
2630
@ stopn1 = ${STOP_N} / 2
2731
@ stopn2 = ${stopnf} - $stopn1
2832

29-
cd $CIMEROOT/scripts
30-
rm -r -f ${CASERR1}; ./create_clone -case ${CASERR1} -clone ${CASER0}
3133

32-
cd $CASERR1
34+
cd $CASER0
3335
./xmlchange -file env_build.xml -id EXEROOT -val ${EXEROOT} || exit -1
3436
./xmlchange -file env_build.xml -id BUILD_COMPLETE -val TRUE || exit -1
3537
./case_setup -testmode
@@ -48,8 +50,9 @@ echo " short term archiving is on" >>& $TESTSTATUS_LOG
4850
set DOUT_S_ROOT = `./xmlquery DOUT_S_ROOT -value`
4951
set DOUTSR0 = $DOUT_S_ROOT
5052
set CASE = `./xmlquery CASE -value`
51-
./xmlchange -file env_run.xml -id STOP_N -val ${stopn1} || exit -1
52-
./xmlchange -file env_run.xml CLM_ACCELERATED_SPINUP=on || exit -1
53+
set CASESPIN = $CASE
54+
./xmlchange -file env_run.xml -id STOP_N -val ${stopn1} || exit -1
55+
./xmlchange CLM_ACCELERATED_SPINUP=on || exit -1
5356

5457
./case.run
5558
if ($status != 0) then
@@ -106,13 +109,13 @@ set refdate = `ls -1dt ${DOUTSR0}/rest/*-00000* | head -1 | sed "s/-00000.*//" |
106109
ln -s ${DOUTSR0}/rest/${refdate}-00000/*${refdate}* $RUNDIR/.
107110

108111
# set up run
109-
./xmlchange RUN_TYPE="hybrid"
110-
./xmlchange GET_REFCASE=FALSE
111-
./xmlchange RUN_REFCASE=$CASE0
112-
./xmlchange RUN_REFDATE=${refdate}
113-
./xmlchange STOP_N=${stopn2}
114-
./xmlchange DOUT_S=FALSE
115-
./xmlchange -file env_run.xml CLM_ACCELERATED_SPINUP=off || exit -1
112+
./xmlchange RUN_TYPE="hybrid" || exit -1
113+
./xmlchange GET_REFCASE=FALSE || exit -1
114+
./xmlchange RUN_REFCASE=${CASESPIN} || exit -1
115+
./xmlchange RUN_REFDATE=${refdate} || exit -1
116+
./xmlchange STOP_N=${stopn2} || exit -1
117+
./xmlchange DOUT_S=FALSE || exit -1
118+
./xmlchange CLM_ACCELERATED_SPINUP=on || exit -1
116119

117120
set CASE = `./xmlquery CASE -value`
118121

0 commit comments

Comments
 (0)