Skip to content

Commit

Permalink
Set restart time cycle flag EFYO -> EY for certain specialty simulations
Browse files Browse the repository at this point in the history
We now use time cycle flag EFYO (exact, force error if not found,
use simulation year, read only once) for restart files.  However,
the default restart files for certain specialty simulations might not
contain all species.  Therefore, for these specialty simulations, we
change the time cycle flag EFYO -> EY in HEMCO_Config.rc during
run directory generation.

Signed-off-by: Bob Yantosca <[email protected]>
  • Loading branch information
yantosca committed Apr 12, 2021
1 parent c1e9475 commit 7cd9cf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run/GCClassic/createRunDir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -770,15 +770,16 @@ fi

# Sample restarts for several simulations do not contain all species. For those
# simulations, print a warning and change the time cycle option in HEMCO config
# so that we do not force an error if not found (i.e. EFYO --> EY)
if [[ "x${sim_extra_option}" == "xaciduptake" ||
"x${sim_extra_option}" == "xmarinePOA" ||
"x${sim_extra_option}" == "xcomplexSOA_SVPOA" ||
"x${sim_extra_option}" == "xAPM" ||
"x${sim_name}" == "xPOPs" ||
"x${sim_name}" == "xtagCH4" ||
"x${sim_name}" == "xtagO3" ]]; then
old="SpeciesRst_?ALL? \$YYYY/\$MM/\$DD/\$HH EFY"
new="SpeciesRst_?ALL? \$YYYY/\$MM/\$DD/\$HH EY "
old="SpeciesRst_?ALL? \$YYYY/\$MM/\$DD/\$HH EFYO"
new="SpeciesRst_?ALL? \$YYYY/\$MM/\$DD/\$HH EY "
sed_ie "s|${old}|${new}|" HEMCO_Config.rc

printf "\n -- The sample restart provided for this simulation may not"
Expand Down

0 comments on commit 7cd9cf4

Please sign in to comment.