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 (" +