Skip to content

Commit

Permalink
Merge pull request #12 from AmirMardan/issue_11
Browse files Browse the repository at this point in the history
make sure injSrc sends t as int32
  • Loading branch information
AmirMardan committed Mar 25, 2024
2 parents 8fe37c9 + ddca3b1 commit 9701799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PyFWI/wave_propagation.py
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 9701799

Please sign in to comment.