Skip to content

Commit

Permalink
Fix restart file for GC-classic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaweiZhuang committed Dec 7, 2018
1 parent 6c7d66b commit 3b9b92c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/build_environment/GC-classic/deploy_GC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@ cd ~/tutorial/geosfp_4x5_standard
mkdir OutputDir # to host output data
make -j4 mpbuild NC_DIAG=y BPCH_DIAG=n TIMERS=1

# change run-time configuration for tutorial purpose
# modify run-time configurations

# correctly link restart file
ln -sf $HOME/ExtData/GEOSCHEM_RESTARTS/v2018-11/initial_GEOSChem_rst.4x5_standard.nc GEOSChem.Restart.20160701_0000z.nc4

# Use short simulation period for tutorial purpose
sed -i -e 's#End YYYYMMDD.*#End YYYYMMDD, hhmmss : 20160701 002000#' input.geos
sed -i -e 's#EXPID: ./GEOSChem.*#EXPID: ./OutputDir/GEOSChem#' HISTORY.rc
sed -i -e "s/#'SpeciesConc',/'SpeciesConc',/" HISTORY.rc # make sure this collection is uncommented

# reduce output size for tutorial purpose
sed -i -e 's#EXPID: ./GEOSChem.*#EXPID: ./OutputDir/GEOSChem#' HISTORY.rc
sed -i -e "s/#'SpeciesConc',/'SpeciesConc',/" HISTORY.rc # make sure this collection is uncommented
sed -i -e 's#SpeciesConc.frequency.*#SpeciesConc.frequency: 00000000 002000#' HISTORY.rc
sed -i -e 's#SpeciesConc.duration.*#SpeciesConc.duration: 00000000 002000#' HISTORY.rc
sed -i -e "s#SpeciesConc.mode.*#SpeciesConc.mode: 'instantaneous'#" HISTORY.rc
Expand Down

0 comments on commit 3b9b92c

Please sign in to comment.