Skip to content

Commit

Permalink
make sure injSrc sends t as int32
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirMardan committed Mar 11, 2024
1 parent 8fe37c9 commit ddca3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PyFWI/wave_propagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,10 +697,10 @@ def __update_fwd(self, coeff):
def __kernel(self, s, coeff=+1):
showpurose = np.zeros((self.tnz, self.tnx), dtype=np.float32)
chpc = 0
t_src = np.int32(0)
t_src = 0
for t in np.arange(self.nt):
if t % self.dt_scale == 0:
self.__injSrc(t_src, s)
self.__injSrc(np.int32(t_src), s)
t_src += 1

self.__update_fwd(coeff=coeff)
Expand Down

0 comments on commit ddca3b1

Please sign in to comment.