From cc87716218bd084b85c98bf8fd3f61f07337f016 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 20 Oct 2012 02:32:21 +0000 Subject: [PATCH] Produce an error for an operation that doesn't make any sense in 1d. git-svn-id: https://svn.dealii.org/trunk@27150 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/dofs/dof_renumbering.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deal.II/source/dofs/dof_renumbering.cc b/deal.II/source/dofs/dof_renumbering.cc index 1029d8d845..302f2d4cd6 100644 --- a/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/source/dofs/dof_renumbering.cc @@ -2047,6 +2047,8 @@ namespace DoFRenumbering bool operator () (const DHCellIterator& c1, const DHCellIterator& c2) const { + Assert (dim >= 2, + ExcMessage ("This operation only makes sense for dim>=2.")); const Point v1 = c1->center() - center; const Point v2 = c2->center() - center; -- 2.39.5