comparison src/Grids/Grids.jl @ 2003:524a52f190d7 feature/sbp_operators/laplace_curvilinear

Merge feature/grids/geometry_functions
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 29 Apr 2025 09:03:05 +0200
parents 496b8d3903c6 ea04a542a526
children
comparison
equal deleted inserted replaced
1962:496b8d3903c6 2003:524a52f190d7
82 include("equidistant_grid.jl") 82 include("equidistant_grid.jl")
83 include("zero_dim_grid.jl") 83 include("zero_dim_grid.jl")
84 include("mapped_grid.jl") 84 include("mapped_grid.jl")
85 include("geometry.jl") 85 include("geometry.jl")
86 86
87 function __init__()
88 if !isdefined(Base.Experimental, :register_error_hint)
89 return
90 end
91
92 Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs
93 if exc.f == Grids.jacobian
94 print(io, "\nThis possibly means that a function used to define a coordinate mapping is missing a method for `Grids.jacobian`.\n")
95 print(io, "Provide one by for exmple implementing `Grids.jacobian(::$(typeof(exc.args[1])), x) = ...` or `Grids.jacobian(f, x) = ForwardDiff.jacobian(f,x)`")
96 end
97 end
98 end
99
87 end # module 100 end # module