Skip to content

Commit

Permalink
Merge pull request #359 from opesci/acoustic-shape-hotfix
Browse files Browse the repository at this point in the history
acoustic: dimensions=shape -> shape=shape
  • Loading branch information
FabioLuporini authored Sep 23, 2017
2 parents 50b0694 + cf79038 commit e4b5dbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/seismic/acoustic/acoustic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ def run(shape=(50, 50, 50), spacing=(20.0, 20.0, 20.0), tn=1000.0,
time_order=2, space_order=4, nbpml=40, full_run=False,
autotune=False, **kwargs):

solver = acoustic_setup(dimensions=shape, spacing=spacing,
nbpml=nbpml, tn=tn, space_order=space_order,
time_order=time_order, **kwargs)
solver = acoustic_setup(shape=shape, spacing=spacing, nbpml=nbpml, tn=tn,
space_order=space_order, time_order=time_order, **kwargs)

initial_vp = smooth10(solver.model.m.data, solver.model.shape_domain)
dm = np.float32(initial_vp**2 - solver.model.m.data)
Expand Down

0 comments on commit e4b5dbb

Please sign in to comment.