[Dart-dev] [6484] DART/trunk/models/POP/shell_scripts: Renamed the cookie file to something more appropriate.

nancy at ucar.edu nancy at ucar.edu
Wed Sep 18 21:27:19 MDT 2013


Revision: 6484
Author:   thoar
Date:     2013-09-18 21:27:19 -0600 (Wed, 18 Sep 2013)
Log Message:
-----------
Renamed the cookie file to something more appropriate.
The CESM1_1_1 scripts preserve a copy of themselves in the CASEROOT directory.

Modified Paths:
--------------
    DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_hybrid
    DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_pmo
    DART/trunk/models/POP/shell_scripts/CESM_DART_config
    DART/trunk/models/POP/shell_scripts/assimilate.csh
    DART/trunk/models/POP/shell_scripts/perfect_model.csh

-------------- next part --------------
Modified: DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_hybrid
===================================================================
--- DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_hybrid	2013-09-18 21:33:21 UTC (rev 6483)
+++ DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_hybrid	2013-09-19 03:27:19 UTC (rev 6484)
@@ -233,6 +233,10 @@
    exit -1
 endif
 
+# preserve a copy of this script as it was run
+set ThisFileName = $0:t
+${COPY} $ThisFileName ${caseroot}/${ThisFileName}.original
+
 # ==============================================================================
 # Record the DARTROOT directory and copy the DART setup script to CASEROOT.
 # CESM_DART_config can be run at some later date if desired, but it presumes

Modified: DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_pmo
===================================================================
--- DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_pmo	2013-09-18 21:33:21 UTC (rev 6483)
+++ DART/trunk/models/POP/shell_scripts/CESM1_1_1_setup_pmo	2013-09-19 03:27:19 UTC (rev 6484)
@@ -268,6 +268,10 @@
    exit -1
 endif
 
+# preserve a copy of this script as it was run
+set ThisFileName = $0:t
+${COPY} $ThisFileName ${caseroot}/${ThisFileName}.original
+
 # ==============================================================================
 # Record the DARTROOT directory and copy the DART setup script to CASEROOT.
 # CESM_DART_config can be run at some later date if desired, but it presumes

Modified: DART/trunk/models/POP/shell_scripts/CESM_DART_config
===================================================================
--- DART/trunk/models/POP/shell_scripts/CESM_DART_config	2013-09-18 21:33:21 UTC (rev 6483)
+++ DART/trunk/models/POP/shell_scripts/CESM_DART_config	2013-09-19 03:27:19 UTC (rev 6484)
@@ -282,7 +282,7 @@
 # place, the cookie file must be 'eaten' so that subsequent assimilations do not
 # overwrite whatever _should_ be there.
 
-date >! ${RUNDIR}/make_pop_inflation_cookie
+date >! ${RUNDIR}/pop_inflation_cookie
 
 # ==============================================================================
 # Creating the code to add to the *.run script to call DART.

Modified: DART/trunk/models/POP/shell_scripts/assimilate.csh
===================================================================
--- DART/trunk/models/POP/shell_scripts/assimilate.csh	2013-09-18 21:33:21 UTC (rev 6483)
+++ DART/trunk/models/POP/shell_scripts/assimilate.csh	2013-09-19 03:27:19 UTC (rev 6484)
@@ -184,7 +184,7 @@
 # 1) Create the initial files offline with values of unity by using
 #    'fill_inflation_restart' and stage them with the appropriate names
 #    in the RUNDIR.
-# 2) create a cookie file called RUNDIR/make_cam_inflation_cookie
+# 2) create a cookie file called RUNDIR/pop_inflation_cookie
 #    The existence of this file will cause this script to set the
 #    namelist appropriately. This script will 'eat' the cookie file
 #    to prevent this from happening for subsequent executions. If the
@@ -236,7 +236,7 @@
       # we are not using an existing inflation file.
       echo "inf_flavor(1) = $PRIOR_INF, using namelist values."
 
-   else if ( -e ../make_pop_inflation_cookie ) then
+   else if ( -e ../pop_inflation_cookie ) then
       # We want to use an existing inflation file, but this is
       # the first assimilation so there is no existing inflation
       # file. This is the signal we need to to coerce the namelist
@@ -279,7 +279,7 @@
       # we are not using an existing inflation file.
       echo "inf_flavor(2) = $POSTE_INF, using namelist values."
 
-   else if ( -e ../make_pop_inflation_cookie ) then
+   else if ( -e ../pop_inflation_cookie ) then
       # We want to use an existing inflation file, but this is
       # the first assimilation so there is no existing inflation
       # file. This is the signal we need to to coerce the namelist
@@ -314,7 +314,7 @@
 endif
 
 # Eat the cookie regardless
-${REMOVE} ../make_pop_inflation_cookie
+${REMOVE} ../pop_inflation_cookie
 
 #=========================================================================
 # Block 4: Convert N POP restart files to DART initial condition files.

Modified: DART/trunk/models/POP/shell_scripts/perfect_model.csh
===================================================================
--- DART/trunk/models/POP/shell_scripts/perfect_model.csh	2013-09-18 21:33:21 UTC (rev 6483)
+++ DART/trunk/models/POP/shell_scripts/perfect_model.csh	2013-09-19 03:27:19 UTC (rev 6484)
@@ -119,7 +119,7 @@
 echo "`date` -- END COPY BLOCK"
 
 # Eat the cookie regardless
-${REMOVE} ../make_pop_inflation_cookie
+${REMOVE} ../pop_inflation_cookie
 
 #=========================================================================
 # Block 2: convert 1 pop restart file to a DART initial conditions file.


More information about the Dart-dev mailing list