Skip to content

Commit

Permalink
examples: throw error instead of warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ofmla committed Jul 27, 2023
1 parent ff12414 commit 22761d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/seismic/tti/wavesolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ def __init__(self, model, geometry, space_order=4, kernel='centered',
self.kernel = kernel

if model.fs and kernel == 'staggered':
warning("Bad arguments in AnisotropicWaveSolver() - " +
"if model.fs is True, kernel should be centered. " +
"Switching to 'centered'")
self.kernel = 'centered'
raise ValueError("Bad arguments in AnisotropicWaveSolver() - " +
"if model.fs is True, kernel must be centered.")

if space_order % 2 != 0:
raise ValueError("space_order must be even but got %s"
Expand Down

0 comments on commit 22761d6

Please sign in to comment.