Skip to content

Commit bed03f7

Browse files
author
Gustavo Coelho
committed
Change to get source position directly from solver instead of self.geometry
1 parent f866365 commit bed03f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylops/waveeqprocessing/twoway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _srcillumination_oneshot(self, solver: AcousticWaveSolverType, isrc: int) ->
250250

251251
# assign source location to source object with custom wavelet
252252
if hasattr(self, "wav"):
253-
self.wav.coordinates.data[0, :] = self.geometry.src_positions[isrc, :]
253+
self.wav.coordinates.data[0, :] = solver.geometry.src_positions[:]
254254

255255
# source wavefield
256256
u0 = solver.forward(
@@ -388,7 +388,7 @@ def _bornadj_oneshot(self, solver: AcousticWaveSolverType, isrc, dobs):
388388

389389
# assign source location to source object with custom wavelet
390390
if hasattr(self, "wav"):
391-
self.wav.coordinates.data[0, :] = self.geometry.src_positions[isrc, :]
391+
self.wav.coordinates.data[0, :] = solver.geometry.src_positions[:]
392392

393393
# source wavefield
394394
if hasattr(self, "src_wavefield"):

0 commit comments

Comments
 (0)