Skip to content

Commit

Permalink
Remove maxLevelCell assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Jun 24, 2021
1 parent 8b5bd8c commit 28d3085
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compass/ocean/tests/global_ocean/init/initial_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def run(self):
if self.with_inactive_top_cells:

logger = self.logger
logger.info(" * Updating min,maxLevelCell for inactive top cells")
logger.info(" * Updating minLevelCell for inactive top cells")

in_filename = 'initial_state.nc'
out_filename = in_filename
Expand All @@ -180,11 +180,9 @@ def run(self):

ds = ds.isel(Time=0)

if ('maxLevelCell' in ds) and ('minLevelCell' in ds):
if ('minLevelCell' in ds):
minLevelCell = ds.minLevelCell+1
maxLevelCell = ds.maxLevelCell+1
ds_out['minLevelCell'] = minLevelCell
ds_out['maxLevelCell'] = maxLevelCell
else:
logger.info(" - Streams missing for inactive top cells")

Expand Down

0 comments on commit 28d3085

Please sign in to comment.