From 12894339c46d618d58eeeb24356362d6cc41cac6 Mon Sep 17 00:00:00 2001 From: Yi-Cheng Teng - NOAA GFDL <143743249+yichengt900@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:49:14 -0500 Subject: [PATCH] add doc files to archive (#7) --- ci/create_run_xml_from_template.bash | 10 ++++++++++ ci/ocean_ice_cobalt_experiments.template.xml | 15 +++++++++++++++ ci/platforms.xml | 16 ++++++++-------- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/ci/create_run_xml_from_template.bash b/ci/create_run_xml_from_template.bash index 033ecbb..be86f60 100755 --- a/ci/create_run_xml_from_template.bash +++ b/ci/create_run_xml_from_template.bash @@ -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} diff --git a/ci/ocean_ice_cobalt_experiments.template.xml b/ci/ocean_ice_cobalt_experiments.template.xml index 60df9f5..121f2fb 100644 --- a/ci/ocean_ice_cobalt_experiments.template.xml +++ b/ci/ocean_ice_cobalt_experiments.template.xml @@ -514,6 +514,21 @@ MOM_OVERRIDE_EOF + + + + + diff --git a/ci/platforms.xml b/ci/platforms.xml index 114a645..29a40e5 100644 --- a/ci/platforms.xml +++ b/ci/platforms.xml @@ -6,14 +6,14 @@ $(NCRC_GROUP) - $DEV/$USER/$(FRE_STEM) - $DEV/$USER/$(FRE_STEM)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/scripts - $DEV/$USER/$(FRE_STEM)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/state - $DEV/$USER/$(FRE_STEM)/$(BUILD_DATE)/$(name)/src - $DEV/$USER/$(FRE_STEM)/$(BUILD_DATE)/$(name)/$(platform)-$(target)/exec - $SCRATCH/$USER/$(stem)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/archive - $SCRATCH/$USER/$(stem)$(DEBUGLEVEL)/$(name)/$(platform)-$(target)/stdout - $SCRATCH/$USER/work/$(stem)/$FRE_JOBID + /gpfs/f5/$(project)/scratch/$USER/$(stem) + $(rootDir)/$(name)/$(platform)-$(target)/scripts + $(rootDir)/$(name)/$(platform)-$(target)/state + $(rootDir)/$(name)/src + $(rootDir)/$(name)/$(platform)-$(target)/exec + $(rootDir)/$(name)/$(platform)-$(target)/archive + $(rootDir)/$(name)/$(platform)-$(target)/stdout + /gpfs/f5/$(project)/scratch/$USER/work/$(stem)/$FRE_JOBID