]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clarify output of ExcHangingNodesNotAllowed.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Jun 2002 15:38:41 +0000 (15:38 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Jun 2002 15:38:41 +0000 (15:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@6108 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_tools.h
deal.II/deal.II/source/fe/fe_tools.cc

index 94a6a8c14e1a686ce38001a4551a4df47b770758..c1be69fad0d9dc172b90d5c6f26f684aa94764e9 100644 (file)
@@ -433,7 +433,11 @@ class FETools
                                     /**
                                      * Exception
                                      */
-    DeclException0 (ExcHangingNodesNotAllowed);
+    DeclException1 (ExcHangingNodesNotAllowed,
+                   int,
+                   << "You are using continuous elements on a grid with hanging "
+                   << "nodes without providing hanging node constraints. Use this"
+                   << "function with additional ConstraintMatrix argument, instead.");
   
                                     /**
                                      * Exception
index 0dc33b60e41351d632d8ebf65b0bacf07cc3a06a..5ad56f1cdb8f7b2ea87b8bf71c276e2aca9a1ea6 100644 (file)
@@ -184,7 +184,7 @@ void FETools::interpolate(const DoFHandler<dim> &dof1,
        for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
          Assert (cell1->at_boundary(face) ||
                  cell1->neighbor(face)->level() == cell1->level(),
-                 ExcHangingNodesNotAllowed());
+                 ExcHangingNodesNotAllowed(0));
       
       cell1->get_dof_values(u1, u1_local);
       interpolation_matrix.vmult(u2_local, u1_local);
@@ -249,7 +249,7 @@ void FETools::back_interpolate(const DoFHandler<dim> &dof1,
        for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
          Assert (cell->at_boundary(face) ||
                  cell->neighbor(face)->level() == cell->level(),
-                 ExcHangingNodesNotAllowed());
+                 ExcHangingNodesNotAllowed(0));
 
       cell->get_dof_values(u1, u1_local);
       interpolation_matrix.vmult(u1_int_local, u1_local);
@@ -337,7 +337,7 @@ void FETools::interpolation_difference(const DoFHandler<dim> &dof1,
        for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
          Assert (cell->at_boundary(face) ||
                  cell->neighbor(face)->level() == cell->level(),
-                 ExcHangingNodesNotAllowed());
+                 ExcHangingNodesNotAllowed(0));
 
       cell->get_dof_values(u1, u1_local);
       difference_matrix.vmult(u1_diff_local, u1_local);

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.