From ddca3b1e6b32a4970d5ceaeef850d7c38da6b9ce Mon Sep 17 00:00:00 2001 From: Amir Mardan <46511946+AmirMardan@users.noreply.github.com> Date: Mon, 11 Mar 2024 14:46:57 -0400 Subject: [PATCH] make sure injSrc sends t as int32 --- src/PyFWI/wave_propagation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PyFWI/wave_propagation.py b/src/PyFWI/wave_propagation.py index a02916f..ce40151 100644 --- a/src/PyFWI/wave_propagation.py +++ b/src/PyFWI/wave_propagation.py @@ -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)