Mercurial > repos > public > sbplib_julia
comparison src/Grids/Grids.jl @ 2008:df2cbcb7a2b1 default
Merge feature/grids/manifolds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 01 May 2025 15:05:11 +0200 |
parents | 3fb5b03162ee |
children | ea04a542a526 |
comparison
equal
deleted
inserted
replaced
2005:52e5ab4a96d5 | 2008:df2cbcb7a2b1 |
---|---|
21 | 21 |
22 export verticies | 22 export verticies |
23 export unittriangle | 23 export unittriangle |
24 export unittetrahedron | 24 export unittetrahedron |
25 export unitsimplex | 25 export unitsimplex |
26 | |
27 export Chart | |
28 | |
29 export Atlas | |
30 export charts | |
31 export connections | |
32 export CartesianAtlas | |
33 export UnstructuredAtlas | |
34 | |
35 export parameterspace | |
26 | 36 |
27 # Grid | 37 # Grid |
28 export Grid | 38 export Grid |
29 export coordinate_size | 39 export coordinate_size |
30 export component_type | 40 export component_type |
64 export mapped_grid | 74 export mapped_grid |
65 export metric_tensor | 75 export metric_tensor |
66 | 76 |
67 include("parameter_space.jl") | 77 include("parameter_space.jl") |
68 include("grid.jl") | 78 include("grid.jl") |
79 include("multiblockgrids.jl") | |
80 include("manifolds.jl") | |
69 include("tensor_grid.jl") | 81 include("tensor_grid.jl") |
70 include("equidistant_grid.jl") | 82 include("equidistant_grid.jl") |
71 include("zero_dim_grid.jl") | 83 include("zero_dim_grid.jl") |
72 include("mapped_grid.jl") | 84 include("mapped_grid.jl") |
73 include("multiblockgrids.jl") | 85 |
86 function __init__() | |
87 if !isdefined(Base.Experimental, :register_error_hint) | |
88 return | |
89 end | |
90 | |
91 Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs | |
92 if exc.f == Grids.jacobian | |
93 print(io, "\nThis possibly means that a function used to define a coordinate mapping is missing a method for `Grids.jacobian`.\n") | |
94 print(io, "Provide one by for exmple implementing `Grids.jacobian(::$(typeof(exc.args[1])), x) = ...` or `Grids.jacobian(f, x) = ForwardDiff.jacobian(f,x)`") | |
95 end | |
96 end | |
97 end | |
74 | 98 |
75 end # module | 99 end # module |