From: Martin Kronbichler Date: Tue, 2 Apr 2024 16:37:29 +0000 (+0200) Subject: Improve two assertions X-Git-Tag: v9.6.0-rc1~408^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16830%2Fhead;p=dealii.git Improve two assertions --- 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;