From d866026295488f8f657e42b8d4c487568e590078 Mon Sep 17 00:00:00 2001 From: Jon Wolfe Date: Wed, 2 Oct 2024 15:11:02 -0500 Subject: [PATCH] Add sed commands to modify env_archive.xml to test the conservation am --- .../testmods_dirs/mpaso/conservation_check/shell_commands | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 components/mpas-ocean/cime_config/testdefs/testmods_dirs/mpaso/conservation_check/shell_commands diff --git a/components/mpas-ocean/cime_config/testdefs/testmods_dirs/mpaso/conservation_check/shell_commands b/components/mpas-ocean/cime_config/testdefs/testmods_dirs/mpaso/conservation_check/shell_commands new file mode 100644 index 000000000000..764340d699f9 --- /dev/null +++ b/components/mpas-ocean/cime_config/testdefs/testmods_dirs/mpaso/conservation_check/shell_commands @@ -0,0 +1,5 @@ +# include mpas-ocean outputs in testing +sed -i 's/\(compname="mpaso" exclude_testing="true"\)/compname="mpaso"/' env_archive.xml +sed -i '/\(compname="mpaso"\)/,// s/hist/hist.am.conservationCheck\\..*\\.nc$/' env_archive.xml +sed -i 's/casename.mpaso.hist.am.globalStats.1976-01-01.nc/casename.mpaso.hist.am.conservationCheck.1976-01-01.nc/' env_archive.xml +sed -i '/casename.mpaso.hist.am.highFrequencyOutput.1976-01-01_00.00.00.nc/d' env_archive.xml