Skip to content

Commit

Permalink
Update interpolate.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH authored Jul 8, 2024
1 parent 1fb57cb commit 267016c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interpolation/interpolate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct Triangle{D} <: AbstractInterpolator{D}
allow_cache::Bool
s::Dict{NTuple{3,Int},NTuple{9,Float64}}
end
Triangle{D}(; allow_cache=false) where {D} = Triangle{D}(allow_cache, Dict{NTuple{3,Int},Float64}())
Triangle{D}(; allow_cache=true) where {D} = Triangle{D}(allow_cache, Dict{NTuple{3,Int},Float64}())
Base.empty!(method::Triangle) = empty!(method.s)

function populate_cache!(method::Triangle, tri::Triangulation)
Expand Down Expand Up @@ -116,8 +116,8 @@ Interpolate using a piecewise linear interpolant over the underlying triangulati
If you only ever call the scalar-argument version of the interpolant, no caching will
be done even with `allow_cache = true`.
""" Triangle(; allow_cache=false) = Triangle{0}(; allow_cache)
Triangle(d; allow_cache=false) = Triangle(; allow_cache)
""" Triangle(; allow_cache=true) = Triangle{0}(; allow_cache)
Triangle(d; allow_cache=true) = Triangle(; allow_cache)
@doc """
Nearest()
Expand Down

0 comments on commit 267016c

Please sign in to comment.