Mercurial > repos > public > sbplib_julia
comparison src/Grids/Grids.jl @ 1981:ea04a542a526 feature/grids/geometry_functions
Merge feature/grids/manifolds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Feb 2025 22:44:10 +0100 |
parents | f46b4f1fa82c 3fb5b03162ee |
children | 524a52f190d7 |
comparison
equal
deleted
inserted
replaced
1979:db3383581b9f | 1981:ea04a542a526 |
---|---|
65 export spacing | 65 export spacing |
66 export equidistant_grid | 66 export equidistant_grid |
67 | 67 |
68 export MultiBlockBoundary | 68 export MultiBlockBoundary |
69 | 69 |
70 | |
71 # MappedGrid | 70 # MappedGrid |
72 export MappedGrid | 71 export MappedGrid |
73 export jacobian | 72 export jacobian |
74 export logical_grid | 73 export logical_grid |
75 export mapped_grid | 74 export mapped_grid |
83 include("equidistant_grid.jl") | 82 include("equidistant_grid.jl") |
84 include("zero_dim_grid.jl") | 83 include("zero_dim_grid.jl") |
85 include("mapped_grid.jl") | 84 include("mapped_grid.jl") |
86 include("geometry.jl") | 85 include("geometry.jl") |
87 | 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 | |
88 end # module | 100 end # module |