Skip to content

Commit 6dc2fda

Browse files
committed
Add back symlink OmegaMesh.nc, still required
1 parent a876c23 commit 6dc2fda

File tree

1 file changed

+11
-0
lines changed
  • polaris/ocean/tasks/manufactured_solution

1 file changed

+11
-0
lines changed

polaris/ocean/tasks/manufactured_solution/forward.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ def __init__(self, component, name, resolution, subdir, init):
4444
output_filename='output.nc',
4545
validate_vars=['layerThickness', 'normalVelocity'])
4646

47+
def setup(self):
48+
"""
49+
TEMP: symlink initial condition to name hard-coded in Omega
50+
"""
51+
super().setup()
52+
config = self.config
53+
model = config.get('ocean', 'model')
54+
# TODO: remove as soon as Omega no longer hard-codes this file
55+
if model == 'omega':
56+
self.add_input_file(filename='OmegaMesh.nc', target='init.nc')
57+
4758
def compute_cell_count(self):
4859
"""
4960
Compute the approximate number of cells in the mesh, used to constrain

0 commit comments

Comments
 (0)