File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
polaris/tasks/ocean/barotropic_channel Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,17 @@ def dynamic_model_config(self, at_setup):
101101
102102 config = self .config
103103 nu = config .getfloat ('barotropic_channel' , 'horizontal_viscosity' )
104- replacements = dict (nu = nu )
104+ drag = config .getfloat ('barotropic_channel' , 'bottom_drag' )
105+ replacements = dict (nu = nu , drag = drag )
105106 self .add_yaml_file (
106107 'polaris.tasks.ocean.barotropic_channel' ,
107108 self .yaml_filename ,
108109 template_replacements = replacements ,
109110 )
111+ model = config .get ('ocean' , 'model' )
112+ vert_levels = config .getfloat ('vertical_grid' , 'vert_levels' )
113+ if model == 'mpas-ocean' and vert_levels == 1 :
114+ self .add_yaml_file ('polaris.ocean.config' , 'single_layer.yaml' )
110115
111116 def compute_cell_count (self ):
112117 """
You can’t perform that action at this time.
0 commit comments