[Dart-dev] [5979] DART/branches/development/models/clm/shell_scripts/CESM1_1_setup.csh : Trying to set error codes that will cause a failure.
nancy at ucar.edu
nancy at ucar.edu
Wed Feb 27 11:23:09 MST 2013
Revision: 5979
Author: thoar
Date: 2013-02-27 11:23:08 -0700 (Wed, 27 Feb 2013)
Log Message:
-----------
Trying to set error codes that will cause a failure.
Modified Paths:
--------------
DART/branches/development/models/clm/shell_scripts/CESM1_1_setup.csh
-------------- next part --------------
Modified: DART/branches/development/models/clm/shell_scripts/CESM1_1_setup.csh
===================================================================
--- DART/branches/development/models/clm/shell_scripts/CESM1_1_setup.csh 2013-02-26 21:09:53 UTC (rev 5978)
+++ DART/branches/development/models/clm/shell_scripts/CESM1_1_setup.csh 2013-02-27 18:23:08 UTC (rev 5979)
@@ -125,7 +125,7 @@
# stop_n Number of time units in the forecast
# ==============================================================================
-setenv resubmit 1
+setenv resubmit 8
setenv stop_option nhours
setenv stop_n 24
@@ -141,7 +141,7 @@
setenv ACCOUNT P86850054
setenv timewall 0:20
setenv queue regular
-setenv ptile 30
+setenv ptile 15
# ==============================================================================
# set these standard commands based on the machine you are running on.
@@ -187,7 +187,7 @@
if ( $status != 0 ) then
echo "ERROR: Case could not be created."
- exit 1
+ exit -1
endif
# ==============================================================================
@@ -206,6 +206,7 @@
@ cpl_pes = $total_nt / 8
@ ice_pes = $total_nt / 8
@ ocn_pes = $total_nt / 8
+@ glc_pes = $total_nt / 8
@ rof_pes = $total_nt / 8
@ lnd_pes = $total_nt - ($cpl_pes + $ice_pes + $ocn_pes + $rof_pes)
@@ -215,6 +216,7 @@
echo "CPL gets $cpl_pes"
echo "ICE gets $ice_pes"
echo "OCN gets $ocn_pes"
+echo "GLC gets $glc_pes"
echo "ROF gets $rof_pes"
echo "LND gets $lnd_pes"
echo ""
@@ -222,7 +224,7 @@
./xmlchange NTHRDS_ATM=1,NTASKS_ATM=$atm_pes,NINST_ATM=$num_instances
./xmlchange NTHRDS_ICE=1,NTASKS_ICE=$ice_pes,NINST_ICE=1
./xmlchange NTHRDS_OCN=1,NTASKS_OCN=$ocn_pes,NINST_OCN=1
-./xmlchange NTHRDS_GLC=1,NTASKS_GLC=$ocn_pes,NINST_GLC=1
+./xmlchange NTHRDS_GLC=1,NTASKS_GLC=$glc_pes,NINST_GLC=1
./xmlchange NTHRDS_LND=1,NTASKS_LND=$lnd_pes,NINST_LND=$num_instances
./xmlchange NTHRDS_ROF=1,NTASKS_ROF=$rof_pes,NINST_ROF=$num_instances
./xmlchange NTHRDS_CPL=1,NTASKS_CPL=$cpl_pes
@@ -283,7 +285,7 @@
if ( $status != 0 ) then
echo "ERROR: Case could not be set up."
- exit 2
+ exit -2
endif
# ==============================================================================
@@ -401,7 +403,7 @@
else
echo "DIED Looking for a DART stream txt template for $FNAME"
echo "DIED Looking for a DART stream txt template for $FNAME"
- exit 3
+ exit -3
endif
end
@@ -442,7 +444,7 @@
if ( $status != 0 ) then
echo "ERROR: Case could not be built."
- exit 4
+ exit -5
endif
# ==============================================================================
@@ -524,13 +526,12 @@
# -------------------------------------------------------------------------
# START OF DART: if CESM finishes correctly (pirated from ccsm_postrun.csh);
# perform an assimilation with DART.
-# -------------------------------------------------------------------------
set CplLogFile = `ls -1t cpl.log* | head -n 1`
if ($CplLogFile == "") then
echo 'ERROR: Model did not complete - no cpl.log file present - exiting.'
echo 'ERROR: Assimilation will not be attempted.'
- exit 1
+ exit -1
endif
grep 'SUCCESSFUL TERMINATION' $CplLogFile
@@ -541,12 +542,12 @@
echo "`date` -- DART HAS FINISHED"
else
echo "`date` -- DART FILTER ERROR - ABANDON HOPE"
- exit 3
+ exit -3
endif
else
echo 'ERROR: Model did not complete successfully - exiting.'
echo 'ERROR: Assimilation will not be attempted.'
- exit 2
+ exit -2
endif
# END OF DART BLOCK
@@ -604,7 +605,7 @@
if ( $status != 0 ) then
echo "ERROR: ${DARTroot}/models/clm/work/${FILE} not copied to ${exeroot}"
echo "ERROR: ${DARTroot}/models/clm/work/${FILE} not copied to ${exeroot}"
- exit 5
+ exit -5
endif
end
More information about the Dart-dev
mailing list