Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
add doc files to archive (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Jan 22, 2024
1 parent c2e5858 commit 1289433
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
10 changes: 10 additions & 0 deletions ci/create_run_xml_from_template.bash
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ else
exit 100
fi

# Check
if [ -d 19930101.extra.results ]; then rm -rf 19930101.extra.results ; fi
tar -xvf ${DEV}/${USER}/github/cefi_NWA12_regression_${CURRENT_DATE}/NWA12_COBALT_V1/ncrc5.intel22-repro/archive/1x0m2d_1646x1o/ascii/19930101.ascii_out.tar ./19930101.extra.results/
# MOM_parameter_doc.all
diff -q ./19930101.extra.results/MOM_parameter_doc.all /gpfs/f5/cefi/proj-shared/github/ci_data/reference/NWA12_RT/1x0m2d_1646x1o/ascii/19930101.extra.results/MOM_parameter_doc.all > /dev/null || { echo "Error: MOM_parameter_doc.all are different, check and update ref! Exiting now..."; exit 1; }
# SIS_parameter_doc.all
diff -q ./19930101.extra.results/SIS_parameter_doc.all /gpfs/f5/cefi/proj-shared/github/ci_data/reference/NWA12_RT/1x0m2d_1646x1o/ascii/19930101.extra.results/SIS_parameter_doc.all > /dev/null || { echo "Error: SIS_parameter_doc.all are different, check and update ref! Exiting now..."; exit 1; }
# ocean.stats
diff -q ./19930101.extra.results/ocean.stats /gpfs/f5/cefi/proj-shared/github/ci_data/reference/NWA12_RT/1x0m2d_1646x1o/ascii/19930101.extra.results/ocean.stats > /dev/null || { echo "Error: ocean.stats are different, check and update ref! Exiting now..."; exit 1; }

# Final clean-up
rm -rf ${DEV}/${USER}/work/github/cefi_NWA12_regression_${CURRENT_DATE}
rm -rf ${DEV}/${USER}/ptmp/github/cefi_NWA12_regression_${CURRENT_DATE}
15 changes: 15 additions & 0 deletions ci/ocean_ice_cobalt_experiments.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,21 @@ MOM_OVERRIDE_EOF
</regression>
<reference restart="$(ACR)/reference/NWA12_RT/1x0m2d_1646x1o/restart/19930103.tar"/>
</runtime>

<postProcess>
<csh><![CDATA[
cd $work
#Make a directory to trick FRE to pick up and archive in ascii
mkdir extra.results
mv MOM_parameter_doc* SIS_parameter_doc* seaice.stats* ocean.stats* extra.results/
cp diag_table extra.results/.
#When the ocean uses a mask_table the ocean_static.nc file produced by the model run has holes in coordinates (geolon,geolat)
#This causes problems for ferret and python tools for analysis.
#Copy a non-masked version of ocean_static.nc to be saved as a history file to be used by the analysis scipts .
cp $work/INPUT/ocean_static_no_mask_table.nc $work/
]]></csh>
</postProcess>

</experiment>

<!-- For a new run starting from non-restart initial conditions, this starts the first year as a new run and then restarts for subsequent years -->
Expand Down
16 changes: 8 additions & 8 deletions ci/platforms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<compiler type="intel-classic" version="2022.0.2"/>
<project>$(NCRC_GROUP)</project>
<directory stem="$(FRE_STEM)">
<root>$DEV/$USER/$(FRE_STEM)</root>
<scripts>$DEV/$USER/$(FRE_STEM)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/scripts</scripts>
<state>$DEV/$USER/$(FRE_STEM)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/state</state>
<src>$DEV/$USER/$(FRE_STEM)/$(BUILD_DATE)/$(name)/src</src>
<exec>$DEV/$USER/$(FRE_STEM)/$(BUILD_DATE)/$(name)/$(platform)-$(target)/exec</exec>
<archive>$SCRATCH/$USER/$(stem)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/archive</archive>
<stdout>$SCRATCH/$USER/$(stem)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/stdout</stdout>
<work>$SCRATCH/$USER/work/$(stem)/$FRE_JOBID</work>
<root>/gpfs/f5/$(project)/scratch/$USER/$(stem)</root>
<scripts>$(rootDir)/$(name)/$(platform)-$(target)/scripts</scripts>
<state>$(rootDir)/$(name)/$(platform)-$(target)/state</state>
<src>$(rootDir)/$(name)/src</src>
<exec>$(rootDir)/$(name)/$(platform)-$(target)/exec</exec>
<archive>$(rootDir)/$(name)/$(platform)-$(target)/archive</archive>
<stdout>$(rootDir)/$(name)/$(platform)-$(target)/stdout</stdout>
<work>/gpfs/f5/$(project)/scratch/$USER/work/$(stem)/$FRE_JOBID</work>
</directory>
<property name="EXEC_ROOT" value="$DEV/$USER/$(stem)/$(BUILD_DATE)"/>
<property name="F2003_FLAGS" value=" -DINTERNAL_FILE_NML -g "/>
Expand Down

0 comments on commit 1289433

Please sign in to comment.