From 5b7e5b95660b6c6b56f30820b7607518f8fd789c Mon Sep 17 00:00:00 2001 From: Andrea Zunino Date: Wed, 5 Mar 2025 16:41:55 +0100 Subject: [PATCH 1/3] modified: src/EikSolv/eikutils.jl --- src/EikSolv/eikutils.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EikSolv/eikutils.jl b/src/EikSolv/eikutils.jl index 0ce9dd6..6bf0f4b 100644 --- a/src/EikSolv/eikutils.jl +++ b/src/EikSolv/eikutils.jl @@ -198,9 +198,9 @@ $(TYPEDSIGNATURES) Ray tracing utility. Given a traveltime grid and source and receiver positions, trace the rays. """ -function tracerays(grd::AbstractGridEik,ttime::Vector{Array{Float64}}, - coordsrc::Array{Float64,2},coordrec::Vector{Array{Float64,2}}; - steplen::Real=0.01) +function tracerays(grd::AbstractGridEik,ttime::Vector{Array{T}}, + coordsrc::Array{T,2},coordrec::Vector{Array{T,2}}; + steplen::Real=0.01) where T nsrc = size(coordsrc,1) rays_srcs = Vector{Vector{Matrix{Float64}}}(undef,nsrc) From 0d70263c5eda56064ed59a665378627db1c7c2ca Mon Sep 17 00:00:00 2001 From: Andrea Zunino Date: Tue, 21 Oct 2025 16:15:24 +0200 Subject: [PATCH 2/3] fix Interpolations.gradient --- src/EikSolv/eikutils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EikSolv/eikutils.jl b/src/EikSolv/eikutils.jl index 6bf0f4b..2e75a15 100644 --- a/src/EikSolv/eikutils.jl +++ b/src/EikSolv/eikutils.jl @@ -266,9 +266,9 @@ function tracerays_singlesrc(grd::AbstractGridEik,ttime::Array{Float64,N}, #x,y = raypath[s,:] if Ndim == 2 - gradT = gradient(itp,raypath[s,1],raypath[s,2]) + gradT = Interpolations.gradient(itp,raypath[s,1],raypath[s,2]) elseif Ndim == 3 - gradT = gradient(itp,raypath[s,1],raypath[s,2],raypath[s,3]) + gradT = Interpolations.gradient(itp,raypath[s,1],raypath[s,2],raypath[s,3]) end From f684991c99449e9360de76703f157cf38e4eb7bb Mon Sep 17 00:00:00 2001 From: Andrea Zunino Date: Tue, 21 Oct 2025 16:22:14 +0200 Subject: [PATCH 3/3] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index aa882cc..6993f89 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "EikonalSolvers" uuid = "0631ba50-6b23-11e9-3fc3-378508ba069a" authors = ["Andrea Zunino <6928707-anzun@users.noreply.gitlab.com>"] -version = "0.15.2" +version = "0.15.3" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"