Skip to content

Commit

Permalink
Deactivate source shifting in fw3dmode
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuetom committed Jun 20, 2024
1 parent 472f412 commit 78a4432
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stride/physics/iso_acoustic/devito.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ async def before_forward(self, wavelets, vp, rho=None, alpha=None, **kwargs):
# Set geometry and wavelet
wavelets = wavelets.data

if fw3d_mode:
wavelets[:, 1:] = wavelets[:, :-1]
# if fw3d_mode:
# wavelets[:, 1:] = wavelets[:, :-1]

if diff_source:
wavelets = np.gradient(wavelets, self.time.step, axis=-1)
Expand Down Expand Up @@ -827,8 +827,8 @@ async def before_adjoint(self, adjoint_source, wavelets, vp, rho=None, alpha=Non
# Set geometry and adjoint source
adjoint_source = adjoint_source.data

if fw3d_mode:
adjoint_source[:, 1:] = adjoint_source[:, :-1]
# if fw3d_mode:
# adjoint_source[:, 1:] = adjoint_source[:, :-1]

window = scipy.signal.get_window(('tukey', 0.001), time_bounds[1]-time_bounds[0], False)
window = np.pad(window, ((time_bounds[0], self.time.num-time_bounds[1]),), mode='constant', constant_values=0.)
Expand Down

0 comments on commit 78a4432

Please sign in to comment.