1
- from compass .testgroup import TestGroup
2
1
from compass .ocean .tests .turbulence_closure .decomp_test import DecompTest
3
2
from compass .ocean .tests .turbulence_closure .default import Default
4
3
from compass .ocean .tests .turbulence_closure .restart_test import RestartTest
4
+ from compass .testgroup import TestGroup
5
5
6
6
7
7
class TurbulenceClosure (TestGroup ):
@@ -23,12 +23,14 @@ def __init__(self, mpas_core):
23
23
for resolution in [1 , 2 , 1e4 ]:
24
24
for forcing in ['cooling' , 'evaporation' ]:
25
25
self .add_test_case (
26
- Default (test_group = self , resolution = resolution , forcing = forcing ))
26
+ Default (test_group = self , resolution = resolution ,
27
+ forcing = forcing ))
27
28
28
29
29
30
def configure (resolution , forcing , config ):
30
31
"""
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
32
34
33
35
Parameters
34
36
----------
@@ -61,7 +63,6 @@ def configure(resolution, forcing, config):
61
63
vert_levels = 128
62
64
bottom_depth = 128.0
63
65
64
-
65
66
config .set ('turbulence_closure' , 'nx' , f'{ nx } ' )
66
67
config .set ('turbulence_closure' , 'ny' , f'{ ny } ' )
67
68
config .set ('turbulence_closure' , 'dc' , f'{ resolution } ' )
@@ -71,12 +72,14 @@ def configure(resolution, forcing, config):
71
72
if forcing == 'cooling' :
72
73
config .set ('turbulence_closure' , 'surface_heat_flux' , '-100' )
73
74
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' )
75
77
config .set ('turbulence_closure' , 'interior_salinity_gradient' , '0' )
76
78
config .set ('turbulence_closure' , 'wind_stress_zonal' , '0' )
77
79
if forcing == 'evaporation' :
78
80
config .set ('turbulence_closure' , 'surface_heat_flux' , '0' )
79
81
config .set ('turbulence_closure' , 'surface_freshwater_flux' , '0.429' )
80
82
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' )
82
85
config .set ('turbulence_closure' , 'wind_stress_zonal' , '0' )
0 commit comments