1- from compass .testgroup import TestGroup
21from compass .ocean .tests .turbulence_closure .decomp_test import DecompTest
32from compass .ocean .tests .turbulence_closure .default import Default
43from compass .ocean .tests .turbulence_closure .restart_test import RestartTest
4+ from compass .testgroup import TestGroup
55
66
77class TurbulenceClosure (TestGroup ):
@@ -23,12 +23,14 @@ def __init__(self, mpas_core):
2323 for resolution in [1 , 2 , 1e4 ]:
2424 for forcing in ['cooling' , 'evaporation' ]:
2525 self .add_test_case (
26- Default (test_group = self , resolution = resolution , forcing = forcing ))
26+ Default (test_group = self , resolution = resolution ,
27+ forcing = forcing ))
2728
2829
2930def configure (resolution , forcing , config ):
3031 """
31- Modify the configuration options for one of the turbulence closure test cases
32+ Modify the configuration options for one of the turbulence closure test
33+ cases
3234
3335 Parameters
3436 ----------
@@ -61,7 +63,6 @@ def configure(resolution, forcing, config):
6163 vert_levels = 128
6264 bottom_depth = 128.0
6365
64-
6566 config .set ('turbulence_closure' , 'nx' , f'{ nx } ' )
6667 config .set ('turbulence_closure' , 'ny' , f'{ ny } ' )
6768 config .set ('turbulence_closure' , 'dc' , f'{ resolution } ' )
@@ -71,12 +72,14 @@ def configure(resolution, forcing, config):
7172 if forcing == 'cooling' :
7273 config .set ('turbulence_closure' , 'surface_heat_flux' , '-100' )
7374 config .set ('turbulence_closure' , 'surface_freshwater_flux' , '0' )
74- config .set ('turbulence_closure' , 'interior_temperature_gradient' , '0.1' )
75+ config .set ('turbulence_closure' , 'interior_temperature_gradient' ,
76+ '0.1' )
7577 config .set ('turbulence_closure' , 'interior_salinity_gradient' , '0' )
7678 config .set ('turbulence_closure' , 'wind_stress_zonal' , '0' )
7779 if forcing == 'evaporation' :
7880 config .set ('turbulence_closure' , 'surface_heat_flux' , '0' )
7981 config .set ('turbulence_closure' , 'surface_freshwater_flux' , '0.429' )
8082 config .set ('turbulence_closure' , 'interior_temperature_gradient' , '0' )
81- config .set ('turbulence_closure' , 'interior_salinity_gradient' , '-0.025' )
83+ config .set ('turbulence_closure' , 'interior_salinity_gradient' ,
84+ '-0.025' )
8285 config .set ('turbulence_closure' , 'wind_stress_zonal' , '0' )
0 commit comments