Skip to content

Commit

Permalink
Write stats to file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrobodas committed Sep 10, 2024
1 parent e860ebf commit 6abe28d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/containerized-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ jobs:
cd driver
KGO=data/outputs/UKMO/cosp2_output.um_global.${F90}.kgo.$KGO_VERSION.nc
TST=data/outputs/UKMO/cosp2_output.um_global.nc
python compare_to_kgo.py ${KGO} ${TST} --atol=${ATOL} --rtol=${RTOL}
STATS=data/outputs/UKMO/cosp2_output.um_global.${{ matrix.compiler }}.out
python compare_to_kgo.py ${KGO} ${TST} --atol=${ATOL} --rtol=${RTOL} --stats_file=${STATS}
###############################################################################
# Produce plots when it fails during global snapshot tests,
# and create a tarball with outputs.
Expand All @@ -139,7 +140,7 @@ jobs:
fi
cd data/outputs/UKMO
tar --ignore-failed-read -czf outputs.${{ matrix.compiler }}.UKMO.tgz cosp2_output.um_global.nc \
cosp2_output_um.nc *.png cosp2_output.um_global.${{ matrix.compiler }}.kgo.out
cosp2_output_um.nc *.png cosp2_output.um_global.${{ matrix.compiler }}.out
ls -lh
###############################################################################
# Make output files available if any test fails
Expand Down

0 comments on commit 6abe28d

Please sign in to comment.