@@ -198,9 +198,9 @@ $(TYPEDSIGNATURES)
198198
199199Ray 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