Skip to content

Commit

Permalink
Merge pull request #540 from cbegeman/fixup-cosine-bell-init
Browse files Browse the repository at this point in the history
Remove init mode namelist, stream from cosine bell case
  • Loading branch information
xylar authored Feb 21, 2023
2 parents 4523385 + 9ca7538 commit 48bc268
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 42 deletions.
12 changes: 5 additions & 7 deletions compass/ocean/tests/global_convergence/cosine_bell/analysis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import warnings

import matplotlib.pyplot as plt
import numpy as np
import xarray as xr
import matplotlib.pyplot as plt
import warnings

from compass.step import Step

Expand Down Expand Up @@ -34,7 +35,7 @@ def __init__(self, test_case, resolutions, icosahedral):
icosahedral : bool
Whether to use icosahedral, as opposed to less regular, JIGSAW
meshes
"""
""" # noqa: E501
super().__init__(test_case=test_case, name='analysis')
self.resolutions = resolutions
self.icosahedral = icosahedral
Expand All @@ -44,9 +45,6 @@ def __init__(self, test_case, resolutions, icosahedral):
mesh_name = f'Icos{resolution}'
else:
mesh_name = f'QU{resolution}'
self.add_input_file(
filename=f'{mesh_name}_namelist.ocean',
target=f'../{mesh_name}/init/namelist.ocean')
self.add_input_file(
filename=f'{mesh_name}_init.nc',
target=f'../{mesh_name}/init/initial_state.nc')
Expand Down Expand Up @@ -161,7 +159,7 @@ def rmse(self, mesh_name):
lonC - newLon))
mask = temp < radius
tracer[mask] = psi0 / 2.0 * (
1.0 + np.cos(3.1415926 * temp[mask] / radius))
1.0 + np.cos(3.1415926 * temp[mask] / radius))

# oad forward mode data
tracerF = ds.tracer1[sliceTime, :, 0].values
Expand Down

This file was deleted.

31 changes: 0 additions & 31 deletions compass/ocean/tests/global_convergence/cosine_bell/streams.init

This file was deleted.

0 comments on commit 48bc268

Please sign in to comment.