Skip to content

Commit

Permalink
Add a test vector reconstruction
Browse files Browse the repository at this point in the history
This is performed after writing out the vector reconstruction
coefficients
  • Loading branch information
xylar committed Oct 15, 2023
1 parent b786ec7 commit 09480af
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 09480af

Please sign in to comment.