]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Produce an error for an operation that doesn't make any sense in 1d.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 20 Oct 2012 02:32:21 +0000 (02:32 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 20 Oct 2012 02:32:21 +0000 (02:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@27150 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_renumbering.cc

index 1029d8d845405d24cb1f2943ed0ef8132706809e..302f2d4cd6e1ef0c756700c5056570b4cb9b50dc 100644 (file)
@@ -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<dim> v1 = c1->center() - center;
             const Point<dim> v2 = c2->center() - center;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.