Skip to content

Commit

Permalink
examples: make sure the time is long enough to record some data
Browse files Browse the repository at this point in the history
  • Loading branch information
ofmla committed Jul 27, 2023
1 parent 22761d6 commit ffb89fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_adjoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_adjoint_F(self, mkey, shape, kernel, space_order, time_order, setup_fun
location from data. This test uses the conventional dot test:
< Fx, y> = <x, F^T y>
"""
tn = 1000. if mkey[-3:] == "-fs" else 500. # Final time (twice the time for fs)
tn = 500. # Final time

# Create solver from preset
solver = setup_func(shape=shape, spacing=[15. for _ in shape],
Expand Down Expand Up @@ -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 = 1000. if mkey[-3:] == "-fs" else 500. # Final time (twice the time for fs)
tn = 750. if mkey[-3:] == "-fs" else 500 # Final time
nbl = 10 + space_order / 2
spacing = tuple([10.]*len(shape))
# Create solver from preset
Expand Down

0 comments on commit ffb89fe

Please sign in to comment.