Skip to content

Commit

Permalink
Make cfg options lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Oct 17, 2023
1 parent 6a27297 commit 25d7f36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions compass/ocean/tests/drying_slope/decomp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def __init__(self, test_group, resolution, coord_type, method):
subdir = f'{coord_type}/{method}/{res_name}/{name}'
super().__init__(test_group=test_group, name=name,
subdir=subdir)
self.add_step(InitialState(test_case=self, resolution=resolution,
coord_type=coord_type))
self.add_step(InitialState(test_case=self, resolution=resolution))

if coord_type == 'single_layer':
damping_coeff = None
Expand Down
4 changes: 2 additions & 2 deletions compass/ocean/tests/drying_slope/drying_slope.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ min_pc_fraction = 0.1
nx = 6

# Length over which wetting and drying actually occur
Ly_analysis = 25.
ly_analysis = 25.

# Domain length
Ly = 30.
ly = 30.

# Bottom depth at the right side of the domain
right_bottom_depth = 10.
Expand Down
4 changes: 2 additions & 2 deletions compass/ocean/tests/drying_slope/initial_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def run(self):

section = config['drying_slope']
nx = section.getint('nx')
domain_length = section.getfloat('Ly') * 1e3
drying_length = section.getfloat('Ly_analysis') * 1e3
domain_length = section.getfloat('ly') * 1e3
drying_length = section.getfloat('ly_analysis') * 1e3
plug_width_frac = section.getfloat('plug_width_frac')
right_bottom_depth = section.getfloat('right_bottom_depth')
left_bottom_depth = section.getfloat('left_bottom_depth')
Expand Down
2 changes: 1 addition & 1 deletion compass/ocean/tests/drying_slope/viz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _plot_ssh_validation(self, times, tidx=None, outFolder='.'):
mesh_ymean = ds_mesh.isel(Time=0).groupby('yCell').mean(
dim=xr.ALL_DIMS)
bottom_depth = mesh_ymean.bottomDepth.values
drying_length = self.config.getfloat('drying_slope', 'Ly_analysis')
drying_length = self.config.getfloat('drying_slope', 'ly_analysis')
drying_length = drying_length * 1e3
x_offset = np.max(mesh_ymean.yCell.values) - drying_length
x = (mesh_ymean.yCell.values - x_offset) / 1000.0
Expand Down

0 comments on commit 25d7f36

Please sign in to comment.