Skip to content

Commit

Permalink
examples: move to original confgs of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ofmla committed Aug 4, 2023
1 parent 4dd56f7 commit ad39199
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_adjoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TestAdjoint(object):
('layers', (60, 70), 'OT2', 4, 2, acoustic_setup),
('layers', (60, 70), 'OT4', 2, 2, acoustic_setup),
# 2D test with 2 layers and freesurface
('layers-fs', (200, 80), 'OT2', 4, 2, acoustic_setup),
('layers-fs', (60, 70), 'OT2', 4, 2, acoustic_setup),
# 3D tests with varying time and space orders
('layers', (60, 70, 80), 'OT2', 8, 2, acoustic_setup),
('layers', (60, 70, 80), 'OT2', 6, 2, acoustic_setup),
Expand All @@ -47,7 +47,7 @@ class TestAdjoint(object):
('layers-tti', (30, 35), 'staggered', 8, 1, tti_setup),
('layers-tti', (30, 35), 'staggered', 4, 1, tti_setup),
# 2D TTI test with 2 layers and freesurface
('layers-tti-fs', (200, 80), 'centered', 4, 2, tti_setup),
('layers-tti-fs', (30, 35), 'centered', 4, 2, tti_setup),
# 3D TTI tests with varying space orders
('layers-tti', (30, 35, 40), 'centered', 8, 2, tti_setup),
('layers-tti', (30, 35, 40), 'centered', 4, 2, tti_setup),
Expand Down Expand Up @@ -130,7 +130,7 @@ def test_adjoint_F(self, mkey, shape, kernel, space_order, time_order, setup_fun
('layers', (60, 70), 'OT2', 8, 2, acoustic_setup),
('layers', (60, 70), 'OT2', 4, 2, acoustic_setup),
# 2D test with 2 layers and freesurface
('layers-fs', (200, 80), 'OT2', 4, 2, acoustic_setup),
('layers-fs', (60, 70), 'OT2', 4, 2, acoustic_setup),
# 3D tests with varying time and space orders
('layers', (40, 50, 30), 'OT2', 12, 2, acoustic_setup),
('layers', (40, 50, 30), 'OT2', 8, 2, acoustic_setup),
Expand All @@ -139,7 +139,7 @@ def test_adjoint_F(self, mkey, shape, kernel, space_order, time_order, setup_fun
('layers-tti', (20, 25), 'centered', 8, 2, tti_setup),
('layers-tti', (20, 25), 'centered', 4, 2, tti_setup),
# 2D TTI test with 2 layers and freesurface
('layers-tti-fs', (200, 80), 'centered', 4, 2, tti_setup),
('layers-tti-fs', (20, 25), 'centered', 4, 2, tti_setup),
# 3D TTI tests with varying space orders
('layers-tti', (20, 25, 30), 'centered', 8, 2, tti_setup),
('layers-tti', (20, 25, 30), 'centered', 4, 2, tti_setup),
Expand All @@ -165,7 +165,7 @@ def test_adjoint_J(self, mkey, shape, kernel, space_order, time_order, setup_fun
dot test:
< Jx, y> = <x ,J^T y>
"""
tn = 750. if mkey[-3:] == "-fs" else 500 # Final time
tn = 500. # Final time
nbl = 10 + space_order / 2
spacing = tuple([10.]*len(shape))
# Create solver from preset
Expand Down

0 comments on commit ad39199

Please sign in to comment.