From 73928f3ccfa8c745928737cf08d1a647c0e5b7f2 Mon Sep 17 00:00:00 2001 From: Marco Feder Date: Sat, 25 Apr 2026 16:31:03 +0200 Subject: [PATCH] Make it compile with latest deal.II master --- include/mapping_box.h | 5 +++++ source/mapping_box.cc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/mapping_box.h b/include/mapping_box.h index 9dbfee85..93f8d3cb 100644 --- a/include/mapping_box.h +++ b/include/mapping_box.h @@ -93,8 +93,13 @@ class MappingBox : public Mapping virtual bool preserves_vertex_locations() const override; +#if DEAL_II_VERSION_GTE(9, 8, 0) + virtual bool + is_compatible_with(const ReferenceCell &reference_cell) const override; +#else virtual bool is_compatible_with(const ReferenceCell &reference_cell) const override; +#endif /** * @name Mapping points between reference and real cells diff --git a/source/mapping_box.cc b/source/mapping_box.cc index d0b06887..ad3cf73e 100644 --- a/source/mapping_box.cc +++ b/source/mapping_box.cc @@ -130,8 +130,13 @@ MappingBox::preserves_vertex_locations() const template bool +#if DEAL_II_VERSION_GTE(9, 8, 0) +MappingBox::is_compatible_with( + const ReferenceCell &reference_cell) const +#else MappingBox::is_compatible_with( const ReferenceCell &reference_cell) const +#endif { Assert(dim == reference_cell.get_dimension(), ExcMessage("The dimension of your mapping (" +