@@ -10,7 +10,7 @@ class RestartTest(TestCase):
1010 test case verifies that the results of the two runs are identical.
1111 """
1212
13- def __init__ (self , test_group , depth_integrated = False ):
13+ def __init__ (self , test_group , advection_type , depth_integrated = False ):
1414 """
1515 Create the test case
1616
@@ -25,10 +25,11 @@ def __init__(self, test_group, depth_integrated=False):
2525 """
2626
2727 if depth_integrated is True :
28- name = 'fo-depthInt_restart_test'
28+ name_tmp = 'fo-depthInt_restart_test'
2929 else :
30- name = 'fo_restart_test'
30+ name_tmp = 'fo_restart_test'
3131
32+ name = f'{ advection_type } _{ name_tmp } '
3233 super ().__init__ (test_group = test_group , name = name )
3334
3435 ntasks = 36
@@ -42,6 +43,11 @@ def __init__(self, test_group, depth_integrated=False):
4243 step .add_namelist_file (
4344 'compass.landice.tests.thwaites.restart_test' ,
4445 'namelist.full' , out_name = 'namelist.landice' )
46+ if advection_type == 'fct' :
47+ step .add_namelist_options (
48+ {'config_thickness_advection' : "'fct'" ,
49+ 'config_tracer_advection' : "'fct'" },
50+ out_name = 'namelist.landice' )
4551 step .add_streams_file (
4652 'compass.landice.tests.thwaites.restart_test' ,
4753 'streams.full' , out_name = 'streams.landice' )
@@ -57,13 +63,23 @@ def __init__(self, test_group, depth_integrated=False):
5763 step .add_namelist_file (
5864 'compass.landice.tests.thwaites.restart_test' ,
5965 'namelist.restart' , out_name = 'namelist.landice' )
66+ if advection_type == 'fct' :
67+ step .add_namelist_options (
68+ {'config_thickness_advection' : "'fct'" ,
69+ 'config_tracer_advection' : "'fct'" },
70+ out_name = 'namelist.landice' )
6071 step .add_streams_file (
6172 'compass.landice.tests.thwaites.restart_test' ,
6273 'streams.restart' , out_name = 'streams.landice' )
6374
6475 step .add_namelist_file (
6576 'compass.landice.tests.thwaites.restart_test' ,
6677 'namelist.restart.rst' , out_name = 'namelist.landice.rst' )
78+ if advection_type == 'fct' :
79+ step .add_namelist_options (
80+ {'config_thickness_advection' : "'fct'" ,
81+ 'config_tracer_advection' : "'fct'" },
82+ out_name = 'namelist.landice.rst' )
6783 # same streams file for both restart stages
6884 step .add_streams_file (
6985 'compass.landice.tests.thwaites.restart_test' ,
0 commit comments