@@ -14,9 +14,9 @@ class Forward(OceanModelStep):
1414 run_time_steps : int or None
1515 Number of time steps to run for
1616 """
17- def __init__ (self , component , name = 'forward' , subdir = None , indir = None ,
18- ntasks = None , min_tasks = None , openmp_threads = 1 , nu = None ,
19- run_time_steps = None , vadv_method = 'standard' ):
17+ def __init__ (self , component , init , name = 'forward' , subdir = None ,
18+ indir = None , ntasks = None , min_tasks = None , openmp_threads = 1 ,
19+ nu = None , run_time_steps = None , vadv_method = 'standard' ):
2020 """
2121 Create a new test case
2222
@@ -28,9 +28,12 @@ def __init__(self, component, name='forward', subdir=None, indir=None,
2828 name : str
2929 the name of the task
3030
31+ init : polaris.Step
32+ the initial state step
33+
3134 subdir : str, optional
3235 the subdirectory for the step. If neither this nor ``indir``
33- are provided, the directory is the ``name``
36+ are provided, the directory is the ``name``
3437
3538 indir : str, optional
3639 the directory the step is in, to which ``name`` will be appended
@@ -59,16 +62,14 @@ def __init__(self, component, name='forward', subdir=None, indir=None,
5962 self .run_time_steps = run_time_steps
6063 super ().__init__ (component = component , name = name , subdir = subdir ,
6164 indir = indir , ntasks = ntasks , min_tasks = min_tasks ,
62- openmp_threads = openmp_threads )
65+ openmp_threads = openmp_threads ,
66+ graph_target = f'{ init .path } /culled_graph.info' )
6367
6468 # make sure output is double precision
6569 self .add_yaml_file ('polaris.ocean.config' , 'output.yaml' )
6670
6771 self .add_input_file (filename = 'initial_state.nc' ,
68- target = '../../../init/initial_state.nc' )
69-
70- self .add_input_file (filename = 'graph.info' ,
71- target = '../../../init/culled_graph.info' )
72+ target = f'{ init .path } /initial_state.nc' )
7273
7374 self .add_yaml_file ('polaris.ocean.tasks.internal_wave' ,
7475 'forward.yaml' )
0 commit comments