From 402c227de7a35743ec24d9a6742952a61af057d6 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 2 Apr 2024 18:37:29 +0200 Subject: [PATCH] Improve two assertions --- source/fe/mapping_cartesian.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/fe/mapping_cartesian.cc b/source/fe/mapping_cartesian.cc index 947e473df6..07b185eddf 100644 --- a/source/fe/mapping_cartesian.cc +++ b/source/fe/mapping_cartesian.cc @@ -1168,8 +1168,7 @@ MappingCartesian::transform_unit_to_real_cell( const Point &p) const { Assert(is_cartesian(cell), ExcCellNotCartesian()); - if (dim != spacedim) - DEAL_II_NOT_IMPLEMENTED(); + Assert(dim == spacedim, ExcNotImplemented()); Point unit = cell->vertex(0); @@ -1189,9 +1188,8 @@ MappingCartesian::transform_real_to_unit_cell( const Point &p) const { Assert(is_cartesian(cell), ExcCellNotCartesian()); + Assert(dim == spacedim, ExcNotImplemented()); - if (dim != spacedim) - DEAL_II_NOT_IMPLEMENTED(); const Point start = cell->vertex(0); Point real = p; -- 2.39.5