Skip to content

Commit 8934990

Browse files
Merge pull request #7 from GinvLab/develop
raytracing fix from develop
2 parents 4a7f5a8 + f684991 commit 8934990

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "EikonalSolvers"
22
uuid = "0631ba50-6b23-11e9-3fc3-378508ba069a"
33
authors = ["Andrea Zunino <6928707-anzun@users.noreply.gitlab.com>"]
4-
version = "0.15.2"
4+
version = "0.15.3"
55

66
[deps]
77
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"

src/EikSolv/eikutils.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ $(TYPEDSIGNATURES)
198198
199199
Ray tracing utility. Given a traveltime grid and source and receiver positions, trace the rays.
200200
"""
201-
function tracerays(grd::AbstractGridEik,ttime::Vector{Array{Float64}},
202-
coordsrc::Array{Float64,2},coordrec::Vector{Array{Float64,2}};
203-
steplen::Real=0.01)
201+
function tracerays(grd::AbstractGridEik,ttime::Vector{Array{T}},
202+
coordsrc::Array{T,2},coordrec::Vector{Array{T,2}};
203+
steplen::Real=0.01) where T
204204

205205
nsrc = size(coordsrc,1)
206206
rays_srcs = Vector{Vector{Matrix{Float64}}}(undef,nsrc)
@@ -266,9 +266,9 @@ function tracerays_singlesrc(grd::AbstractGridEik,ttime::Array{Float64,N},
266266

267267
#x,y = raypath[s,:]
268268
if Ndim == 2
269-
gradT = gradient(itp,raypath[s,1],raypath[s,2])
269+
gradT = Interpolations.gradient(itp,raypath[s,1],raypath[s,2])
270270
elseif Ndim == 3
271-
gradT = gradient(itp,raypath[s,1],raypath[s,2],raypath[s,3])
271+
gradT = Interpolations.gradient(itp,raypath[s,1],raypath[s,2],raypath[s,3])
272272
end
273273

274274

0 commit comments

Comments
 (0)