]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace exception without message by ones with a message.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 11 Oct 2017 14:55:47 +0000 (08:55 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 11 Oct 2017 15:09:45 +0000 (09:09 -0600)
include/deal.II/dofs/dof_renumbering.h
source/dofs/dof_renumbering.cc

index 523b5b0eff5bd34aade40dd6ef32b49970f151f7..e79b96b3479a865ab82b2c512233fca1e17336f4 100644 (file)
@@ -1084,13 +1084,6 @@ namespace DoFRenumbering
                     "been initialized, i.e., it doesn't appear that DoF indices "
                     "have been distributed on it.");
 
-  /**
-   * Exception
-   *
-   * @ingroup Exceptions
-   */
-  DeclException0 (ExcRenumberingIncomplete);
-
   /**
    * Exception
    *
index 702bde741567fa204826c2ad0c91961efe77abfe..78a17454482674ded32332e4a69e78ee299d6e36 100644 (file)
@@ -527,7 +527,7 @@ namespace DoFRenumbering
             ((dof_handler.n_locally_owned_dofs() < dof_handler.n_dofs())
              &&
              (result <= dof_handler.n_dofs())),
-            ExcRenumberingIncomplete());
+            ExcInternalError());
 
     dof_handler.renumber_dofs (renumbering);
   }
@@ -556,7 +556,7 @@ namespace DoFRenumbering
     if (result == 0) return;
 
     Assert (result == dof_handler.n_dofs(level),
-            ExcRenumberingIncomplete());
+            ExcInternalError());
 
     if (renumbering.size()!=0)
       dof_handler.renumber_dofs (level, renumbering);
@@ -834,7 +834,7 @@ namespace DoFRenumbering
             ((dof_handler.n_locally_owned_dofs() < dof_handler.n_dofs())
              &&
              (result <= dof_handler.n_dofs())),
-            ExcRenumberingIncomplete());
+            ExcInternalError());
 
     dof_handler.renumber_dofs (renumbering);
   }
@@ -862,7 +862,7 @@ namespace DoFRenumbering
       return;
 
     Assert (result == dof_handler.n_dofs(),
-            ExcRenumberingIncomplete());
+            ExcInternalError());
 
     dof_handler.renumber_dofs (renumbering);
   }
@@ -871,7 +871,8 @@ namespace DoFRenumbering
 
   template <int dim, int spacedim>
   void
-  block_wise (DoFHandler<dim,spacedim> &dof_handler, const unsigned int level)
+  block_wise (DoFHandler<dim,spacedim> &dof_handler,
+              const unsigned int        level)
   {
     Assert(dof_handler.n_dofs(level) != numbers::invalid_dof_index,
            ExcDoFHandlerNotInitialized());
@@ -892,7 +893,7 @@ namespace DoFRenumbering
     if (result == 0) return;
 
     Assert (result == dof_handler.n_dofs(level),
-            ExcRenumberingIncomplete());
+            ExcInternalError());
 
     if (renumbering.size()!=0)
       dof_handler.renumber_dofs (level, renumbering);
@@ -1204,7 +1205,7 @@ namespace DoFRenumbering
             ((dof_handler.n_locally_owned_dofs() < dof_handler.n_dofs())
              &&
              (next_free <= dof_handler.n_dofs())),
-            ExcRenumberingIncomplete());
+            ExcInternalError());
 
     // make sure that all local DoFs got new numbers assigned
     Assert (std::find (renumbering.begin(), renumbering.end(),
@@ -1404,7 +1405,10 @@ namespace DoFRenumbering
               }
           }
       }
-    Assert(global_index == n_global_dofs, ExcRenumberingIncomplete());
+    Assert(global_index == n_global_dofs,
+           ExcMessage("Traversing over the given set of cells did not cover all "
+                      "degrees of freedom in the DoFHandler. Does the set of cells "
+                      "not include all active cells?"));
 
     for (types::global_dof_index i=0; i<reverse.size(); ++i)
       new_indices[reverse[i]] = i;
@@ -1472,7 +1476,10 @@ namespace DoFRenumbering
               }
           }
       }
-    Assert(global_index == n_global_dofs, ExcRenumberingIncomplete());
+    Assert(global_index == n_global_dofs,
+           ExcMessage("Traversing over the given set of cells did not cover all "
+                      "degrees of freedom in the DoFHandler. Does the set of cells "
+                      "not include all cells of the specified level?"));
 
     for (types::global_dof_index i=0; i<new_order.size(); ++i)
       new_order[reverse[i]] = i;

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.