Skip to content

Commit

Permalink
Merge branch 'jonbob/mpaso/fix-conservation-test' into next (PR #6659)
Browse files Browse the repository at this point in the history
Fix the mpaso-conservation_check testdef

Add sed commands to modify env_archive.xml to correctly test the
conservation am. As is, the test runs and makes the
hist.am.conservationCheck files just fine, but does not run cprnc on
them and include its results in the TestStatus.

[BFB]
  • Loading branch information
jonbob committed Oct 10, 2024
2 parents 640ab9f + d866026 commit 7f5168b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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"\)/,/<hist_file_extension>/ s/<hist_file_extension>hist/<hist_file_extension>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

0 comments on commit 7f5168b

Please sign in to comment.