[Dart-dev] [5091] DART/trunk/models/tiegcm/shell_scripts/advance_model.csh: Modified to accomodate the case model 1D parameters are not updated by filtering .

nancy at ucar.edu nancy at ucar.edu
Tue Jul 19 16:18:16 MDT 2011


Revision: 5091
Author:   tmatsuo
Date:     2011-07-19 16:18:16 -0600 (Tue, 19 Jul 2011)
Log Message:
-----------
Modified to accomodate the case model 1D parameters are not updated by filtering.

Modified Paths:
--------------
    DART/trunk/models/tiegcm/shell_scripts/advance_model.csh

-------------- next part --------------
Modified: DART/trunk/models/tiegcm/shell_scripts/advance_model.csh
===================================================================
--- DART/trunk/models/tiegcm/shell_scripts/advance_model.csh	2011-07-19 22:16:40 UTC (rev 5090)
+++ DART/trunk/models/tiegcm/shell_scripts/advance_model.csh	2011-07-19 22:18:16 UTC (rev 5091)
@@ -92,8 +92,11 @@
    set sechist      = " SECHIST = "`head -5 namelist_update | tail -1`
    set save         = " SAVE = "`head -5 namelist_update | tail -1`
    set secsave      = " SECSAVE = "`head -5 namelist_update | tail -1`
-   set f107         = " F107 = "`head -6 namelist_update | tail -1`
+   set f107value    = `head -6 namelist_update | tail -1`
+   set f107         = " F107 = ""$f107value"
 
+   if ( $f107value != "NA" ) then
+
    sed \
    -e 's/'"`grep 'START_YEAR' tiegcm.nml.original`"'/'"$start_year"'/' \
    -e 's/'"`grep 'START_DAY' tiegcm.nml.original`"'/'"$start_day"'/' \
@@ -109,6 +112,24 @@
    -e 's/'"`grep 'F107' tiegcm.nml.original | head -1`"'/'"$f107"'/' \
    tiegcm.nml.original >! tiegcm.nml.update
 
+   else
+
+   sed \
+   -e 's/'"`grep 'START_YEAR' tiegcm.nml.original`"'/'"$start_year"'/' \
+   -e 's/'"`grep 'START_DAY' tiegcm.nml.original`"'/'"$start_day"'/' \
+   -e 's/'"`grep 'SOURCE_START' tiegcm.nml.original`"'/'"$source_start"'/' \
+   -e 's/'"`grep 'START' tiegcm.nml.original | head -4 | tail -1`"'/'"$start"'/' \
+   -e 's/'"`grep 'STOP' tiegcm.nml.original | head -1`"'/'"$stop"'/' \
+   -e 's/'"`grep 'HIST' tiegcm.nml.original | head -1`"'/'"$hist"'/' \
+   -e 's/'"`grep 'SAVE' tiegcm.nml.original | head -1`"'/'"$save"'/' \
+   -e 's/'"`grep 'SECSTART' tiegcm.nml.original`"'/'"$secstart"'/' \
+   -e 's/'"`grep 'SECSTOP' tiegcm.nml.original`"'/'"$secstop"'/' \
+   -e 's/'"`grep 'SECHIST' tiegcm.nml.original`"'/'"$sechist"'/' \
+   -e 's/'"`grep 'SECSAVE' tiegcm.nml.original`"'/'"$secsave"'/' \
+   tiegcm.nml.original >! tiegcm.nml.update
+     
+   endif
+
    mv tiegcm.nml.update tiegcm.nml  
 
    #----------------------------------------------------------------------


More information about the Dart-dev mailing list