Skip to content

Commit

Permalink
Merge pull request #53 from GEOS-ESM/feature/mmanyin/fix_clone_bug
Browse files Browse the repository at this point in the history
Fixed clone bug in ctm_setup
  • Loading branch information
mmanyin authored Dec 23, 2024
2 parents b5c3815 + 03b156c commit e23ab57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Applications/GEOSctm_App/ctm_post.j
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ endif
# Perform Post Processing
#######################################################################

setenv POST_SCRIPT @EXPDIR/post/ctmpost.script.$SLURM_JOB_ID
setenv EXPDIR @EXPDIR

setenv POST_SCRIPT $EXPDIR/post/ctmpost.script.$SLURM_JOB_ID

/bin/cp $GEOSUTIL/post/gcmpost.script $POST_SCRIPT

Expand All @@ -63,6 +65,6 @@ sed -i -e "s/AGCM_JM/GEOSctm_JM/g" $POST_SCRIPT
sed -i -e "s/GEOSgcm.x/GEOSctm.x/g" $POST_SCRIPT
sed -i -e "s/gcm_archive/ctm_archive/g" $POST_SCRIPT

$POST_SCRIPT -source @EXPDIR -ncpus $NCPUS -collections @COLLECTION -rec_plt @YYYYMM
$POST_SCRIPT -source $EXPDIR -ncpus $NCPUS -collections @COLLECTION -rec_plt @YYYYMM

exit
5 changes: 5 additions & 0 deletions src/Applications/GEOSctm_App/ctm_setup
Original file line number Diff line number Diff line change
Expand Up @@ -2829,6 +2829,11 @@ foreach file (`cat $NEWEXPFILES`)
sed -i -f $SEDFILE $file
end

# -------------------------------------------------------
# To account for the old non-standard format of one file:
# -------------------------------------------------------
sed -i -e "s#$OLDEXPDIR#$NEWEXPDIR#" $NEWEXPDIR/post/ctm_post.j

# ------------------------------------------
# Change the EXPDSC in HISTORY.rc to reflect
# the fact this experiment was cloned
Expand Down

0 comments on commit e23ab57

Please sign in to comment.