From 09480aff5a596da703e448dc08be13d421acb12f Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Sun, 15 Oct 2023 13:57:04 +0200 Subject: [PATCH] Add a test vector reconstruction This is performed after writing out the vector reconstruction coefficients --- .../write_coeffs_reconstruct/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/compass/ocean/tests/global_ocean/files_for_e3sm/write_coeffs_reconstruct/__init__.py b/compass/ocean/tests/global_ocean/files_for_e3sm/write_coeffs_reconstruct/__init__.py index 00cb3610b4..10e6d9e351 100644 --- a/compass/ocean/tests/global_ocean/files_for_e3sm/write_coeffs_reconstruct/__init__.py +++ b/compass/ocean/tests/global_ocean/files_for_e3sm/write_coeffs_reconstruct/__init__.py @@ -1,5 +1,7 @@ import os +from mpas_tools.logging import check_call + from compass.io import symlink from compass.ocean.tests.global_ocean.files_for_e3sm.files_for_e3sm_step import ( # noqa: E501 FilesForE3SMStep, @@ -43,6 +45,15 @@ def run(self): """ super().run() + # perform a test reconstruction to make sure things are working + args = ['vector_reconstruct', + '-i', 'restart.nc', + '-o', 'velocity_components.nc', + '-w', 'coeffs_reconstruct.nc', + '-v', 'normalVelocity', + '--out_variables', 'velocity'] + check_call(args=args, logger=self.logger) + reconstruct_dir = \ '../assembled_files/diagnostics/mpas_analysis/reconstruct' try: