Skip to content

Fix Geometry::jacobian(...) deprectation warnings for clang

Clang is apparently very pedantic about its deprecation warnings: if a deprecation is placed within an unreachable code (e.g. if constexpr (false) {/*deprecated call*/}), clang will still issue the deprecation warning. See for example https://gitlab.dune-project.org/core/dune-grid/-/jobs/355956#L1278

This MR fixes that with a (less elegant) tag dispatch approach, and adds an upper limit version for when the default jacobian implementation is supported.

Edited by Santiago Ospina De Los Ríos

Merge request reports