]> 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:48:37 +0000 (08:48 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 11 Oct 2017 15:09:39 +0000 (09:09 -0600)
include/deal.II/dofs/dof_handler.h
source/dofs/dof_handler.cc

index c5614b470188ad457dca44f3892c351f8af75273..784188061228bb2f808aafd03f0e01a1cb24dcbc 100644 (file)
@@ -877,13 +877,6 @@ public:
 
   BOOST_SERIALIZATION_SPLIT_MEMBER()
 
-  /**
-   * We are trying to renumber the degrees of freedom, but somehow did not
-   * count correctly.
-   *
-   * @ingroup Exceptions
-   */
-  DeclException0 (ExcRenumberingIncomplete);
   /**
    * Exception
    * @ingroup Exceptions
index b375cd034899fa736caa676e125769414f3c3e17..12b2a50087076a6ac6c6fc22692babf15633a22c 100644 (file)
@@ -1098,8 +1098,7 @@ DoFHandler<dim,spacedim>::renumber_dofs (const std::vector<types::global_dof_ind
 {
   Assert(levels.size()>0, ExcMessage("You need to distribute DoFs before you can renumber them."));
 
-  Assert (new_numbers.size() == n_locally_owned_dofs(),
-          ExcRenumberingIncomplete());
+  AssertDimension (new_numbers.size(), n_locally_owned_dofs());
 
 #ifdef DEBUG
   // assert that the new indices are
@@ -1138,7 +1137,7 @@ DoFHandler<dim,spacedim>::renumber_dofs (const unsigned int
   Assert(mg_levels.size()>0 && levels.size()>0,
          ExcMessage("You need to distribute active and level DoFs before you can renumber level DoFs."));
   AssertIndexRange(level, levels.size());
-  Assert (new_numbers.size() == n_dofs(level), ExcRenumberingIncomplete());
+  AssertDimension (new_numbers.size(), n_dofs(level));
 
   mg_number_cache[level] = policy->renumber_mg_dofs (level, new_numbers);
 }

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.