Skip to content

Commit

Permalink
bug fix in rgrid.get_grid_traveltimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Giroux committed Dec 26, 2024
1 parent 9792254 commit 92e15f0
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 28 deletions.
104 changes: 78 additions & 26 deletions examples/example_Grid3d.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/ttcrpy/rgrid.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ cdef class Grid3d:
cdef vector[double] tmp
cdef int n
self.grid.getTT(tmp, thread_no)
tt = np.empty((tmp.size(),), order='F')
tt = np.empty((tmp.size(),))
for n in range(tmp.size()):
tt[n] = tmp[n]
shape = (self._x.size(), self._y.size(), self._z.size())
return tt.reshape(shape)
return tt.reshape(shape, order='F')

def ind(self, int i, int j, int k):
"""
Expand Down

0 comments on commit 92e15f0

Please sign in to comment.