1111presets = {
1212 'constant' : {'preset' : 'constant-isotropic' },
1313 'layers' : {'preset' : 'layers-isotropic' , 'nlayers' : 2 },
14+ 'layers-fs' : {'preset' : 'layers-isotropic' , 'nlayers' : 2 , 'fs' : True },
1415 'layers-tti' : {'preset' : 'layers-tti' , 'nlayers' : 2 },
16+ 'layers-tti-fs' : {'preset' : 'layers-tti' , 'nlayers' : 2 , 'fs' : True },
1517 'layers-viscoacoustic' : {'preset' : 'layers-viscoacoustic' , 'nlayers' : 2 },
1618}
1719
@@ -27,6 +29,8 @@ class TestAdjoint(object):
2729 ('layers' , (60 , 70 ), 'OT2' , 8 , 2 , acoustic_setup ),
2830 ('layers' , (60 , 70 ), 'OT2' , 4 , 2 , acoustic_setup ),
2931 ('layers' , (60 , 70 ), 'OT4' , 2 , 2 , acoustic_setup ),
32+ # 2D test with 2 layers and freesurface
33+ ('layers-fs' , (60 , 70 ), 'OT2' , 4 , 2 , acoustic_setup ),
3034 # 3D tests with varying time and space orders
3135 ('layers' , (60 , 70 , 80 ), 'OT2' , 8 , 2 , acoustic_setup ),
3236 ('layers' , (60 , 70 , 80 ), 'OT2' , 6 , 2 , acoustic_setup ),
@@ -42,6 +46,8 @@ class TestAdjoint(object):
4246 ('layers-tti' , (30 , 35 ), 'centered' , 4 , 2 , tti_setup ),
4347 ('layers-tti' , (30 , 35 ), 'staggered' , 8 , 1 , tti_setup ),
4448 ('layers-tti' , (30 , 35 ), 'staggered' , 4 , 1 , tti_setup ),
49+ # 2D TTI test with 2 layers and freesurface
50+ ('layers-tti-fs' , (30 , 35 ), 'centered' , 4 , 2 , tti_setup ),
4551 # 3D TTI tests with varying space orders
4652 ('layers-tti' , (30 , 35 , 40 ), 'centered' , 8 , 2 , tti_setup ),
4753 ('layers-tti' , (30 , 35 , 40 ), 'centered' , 4 , 2 , tti_setup ),
@@ -123,13 +129,17 @@ def test_adjoint_F(self, mkey, shape, kernel, space_order, time_order, setup_fun
123129 ('layers' , (60 , 70 ), 'OT2' , 12 , 2 , acoustic_setup ),
124130 ('layers' , (60 , 70 ), 'OT2' , 8 , 2 , acoustic_setup ),
125131 ('layers' , (60 , 70 ), 'OT2' , 4 , 2 , acoustic_setup ),
132+ # 2D test with 2 layers and freesurface
133+ ('layers-fs' , (60 , 70 ), 'OT2' , 4 , 2 , acoustic_setup ),
126134 # 3D tests with varying time and space orders
127135 ('layers' , (40 , 50 , 30 ), 'OT2' , 12 , 2 , acoustic_setup ),
128136 ('layers' , (40 , 50 , 30 ), 'OT2' , 8 , 2 , acoustic_setup ),
129137 ('layers' , (40 , 50 , 30 ), 'OT2' , 4 , 2 , acoustic_setup ),
130138 # 2D TTI tests with varying space orders
131139 ('layers-tti' , (20 , 25 ), 'centered' , 8 , 2 , tti_setup ),
132140 ('layers-tti' , (20 , 25 ), 'centered' , 4 , 2 , tti_setup ),
141+ # 2D TTI test with 2 layers and freesurface
142+ ('layers-tti-fs' , (20 , 25 ), 'centered' , 4 , 2 , tti_setup ),
133143 # 3D TTI tests with varying space orders
134144 ('layers-tti' , (20 , 25 , 30 ), 'centered' , 8 , 2 , tti_setup ),
135145 ('layers-tti' , (20 , 25 , 30 ), 'centered' , 4 , 2 , tti_setup ),
0 commit comments