Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Mesh: WC14to60E3r2 #707

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def _add_step(self, step_name, options, get_dt_from_min_res,
if previous_restart_filename is not None:
step.add_input_file(filename=f'../{previous_restart_filename}')
step.add_output_file(filename=f'../{restart_filename}')
step.add_output_file(filename='output.nc')
if step_name == 'simulation':
step.add_output_file(filename='output.nc')

self.add_step(step)

Expand Down
7 changes: 5 additions & 2 deletions compass/ocean/tests/global_ocean/mesh/wc14/wc14.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ transition_levels = 28
# options for global ocean testcases
[global_ocean]

# Maximum allowed Haney number for configurations with ice-shelf cavities
rx1_max = 10

# the approximate number of cells in the mesh
approx_cell_count = 410000

Expand All @@ -39,13 +42,13 @@ mesh_description = MPAS North America and Arctic Focused Water Cycle mesh for E3
e3sm_version = 3
# The revision number of the mesh, which should be incremented each time the
# mesh is revised
mesh_revision = 1
mesh_revision = 2
# the minimum (finest) resolution in the mesh
min_res = 14
# the maximum (coarsest) resolution in the mesh, can be the same as min_res
max_res = 60
# The URL of the pull request documenting the creation of the mesh
pull_request = https://github.com/MPAS-Dev/MPAS-Model/pull/628
pull_request = https://github.com/MPAS-Dev/compass/pull/707


# config options related to initial condition and diagnostics support files
Expand Down
2 changes: 1 addition & 1 deletion compass/ocean/tests/global_ocean/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def add_mesh_and_init_metadata(output_filenames, config, init_filename):
metadata = _get_metadata(dsInit, config)

for filename in output_filenames:
if filename.endswith('.nc'):
if filename.endswith('.nc') and os.path.exists(filename):
args = ['ncks']
for key, value in metadata.items():
args.extend(['--glb_att_add', f'{key}={value}'])
Expand Down
Loading