Skip to content

Commit

Permalink
Fix initial state filename in files for E3SM
Browse files Browse the repository at this point in the history
Following MPAS-Dev#813, the
initial state is the same whether ice shelf cavities are present
or not.  It is the result of the `init/initial_state` step
  • Loading branch information
xylar committed Jul 1, 2024
1 parent afbeef8 commit a534df3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions compass/ocean/tests/global_ocean/files_for_e3sm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,8 @@ def configure(self):
base_mesh_filename)

if init is not None:
if mesh.with_ice_shelf_cavities:
initial_state_filename = \
f'{init.path}/ssh_adjustment/adjusted_init.nc'
else:
initial_state_filename = \
f'{init.path}/initial_state/initial_state.nc'
initial_state_filename = \
f'{init.path}/initial_state/initial_state.nc'
initial_state_filename = os.path.join(self.base_work_dir,
initial_state_filename)
config.set('files_for_e3sm', 'ocean_initial_state_filename',
Expand Down

0 comments on commit a534df3

Please sign in to comment.