]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove double negation from exception message. 11800/head
authorMarc Fehling <mafehling.git@gmail.com>
Tue, 23 Feb 2021 22:21:58 +0000 (15:21 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Wed, 24 Feb 2021 03:26:32 +0000 (20:26 -0700)
include/deal.II/dofs/dof_handler.h
source/dofs/dof_handler.cc
source/dofs/dof_handler_policy.cc
source/hp/refinement.cc

index 6930091e8fab19930a103cc0795c7a59bc97e7d3..c74286fd7f0d37e1acab01f722671ff32ca80e4a 100644 (file)
@@ -1387,7 +1387,7 @@ public:
    * Exception used when a certain feature doesn't make sense when
    * DoFHandler does not hp-capabilities.
    */
-  DeclExceptionMsg(ExcNotAvailableWithoutHP,
+  DeclExceptionMsg(ExcOnlyAvailableWithHP,
                    "The current function doesn't make sense when used with a "
                    "DoFHandler without hp-capabilities.");
 
index d88ce7c1356bc2947a164222c28e0983379c0936..6abec402085590be61589de92c94c7f91bf56a0d 100644 (file)
@@ -1713,7 +1713,7 @@ namespace internal
         {
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           if (const dealii::parallel::shared::Triangulation<dim, spacedim> *tr =
                 dynamic_cast<
@@ -3115,7 +3115,7 @@ template <int dim, int spacedim>
 void
 DoFHandler<dim, spacedim>::create_active_fe_table()
 {
-  AssertThrow(hp_capability_enabled == true, ExcNotAvailableWithoutHP());
+  AssertThrow(hp_capability_enabled == true, ExcOnlyAvailableWithHP());
 
 
   // Create sufficiently many hp::DoFLevels.
index 2d9bc98a4ec1906465d12a01d7649cd68c9ecc83..76de280b8a4934dc31744b8a0f9a11b7090f4320 100644 (file)
@@ -216,7 +216,7 @@ namespace internal
         {
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           std::map<types::global_dof_index, types::global_dof_index>
             dof_identities;
@@ -374,9 +374,8 @@ namespace internal
         compute_line_dof_identities(const DoFHandler<1, spacedim> &dof_handler)
         {
           (void)dof_handler;
-          Assert(
-            dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<1, spacedim>::ExcNotAvailableWithoutHP()));
+          Assert(dof_handler.hp_capability_enabled == true,
+                 (typename DoFHandler<1, spacedim>::ExcOnlyAvailableWithHP()));
 
           return std::map<types::global_dof_index, types::global_dof_index>();
         }
@@ -389,7 +388,7 @@ namespace internal
         {
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           std::map<types::global_dof_index, types::global_dof_index>
             dof_identities;
@@ -743,7 +742,7 @@ namespace internal
           (void)dof_handler;
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           // this function should only be called for dim<3 where there are
           // no quad dof identies. for dim==3, the specialization below should
@@ -758,9 +757,8 @@ namespace internal
         static std::map<types::global_dof_index, types::global_dof_index>
         compute_quad_dof_identities(const DoFHandler<3, spacedim> &dof_handler)
         {
-          Assert(
-            dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<3, spacedim>::ExcNotAvailableWithoutHP()));
+          Assert(dof_handler.hp_capability_enabled == true,
+                 (typename DoFHandler<3, spacedim>::ExcOnlyAvailableWithHP()));
 
           const int dim = 3;
 
@@ -1066,7 +1064,7 @@ namespace internal
         {
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           // Note: we may wish to have something here similar to what
           // we do for lines and quads, namely that we only identify
@@ -1223,9 +1221,8 @@ namespace internal
           DoFHandler<1, spacedim> &dof_handler)
         {
           (void)dof_handler;
-          Assert(
-            dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<1, spacedim>::ExcNotAvailableWithoutHP()));
+          Assert(dof_handler.hp_capability_enabled == true,
+                 (typename DoFHandler<1, spacedim>::ExcOnlyAvailableWithHP()));
         }
 
 
@@ -1236,7 +1233,7 @@ namespace internal
         {
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           // we will mark lines that we have already treated, so first save and
           // clear the user flags on lines and later restore them
@@ -1499,7 +1496,7 @@ namespace internal
           (void)dof_handler;
           Assert(
             dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<dim, spacedim>::ExcNotAvailableWithoutHP()));
+            (typename DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
           // this function should only be called for dim<3 where there are
           // no quad dof identies. for dim>=3, the specialization below should
@@ -1512,9 +1509,8 @@ namespace internal
         static void merge_invalid_quad_dofs_on_ghost_interfaces(
           DoFHandler<3, spacedim> &dof_handler)
         {
-          Assert(
-            dof_handler.hp_capability_enabled == true,
-            (typename DoFHandler<3, spacedim>::ExcNotAvailableWithoutHP()));
+          Assert(dof_handler.hp_capability_enabled == true,
+                 (typename DoFHandler<3, spacedim>::ExcOnlyAvailableWithHP()));
 
           const int dim = 3;
 
index 3a2c80e6e0fcbe2af51befd5ef62ecefa3067799..ac0549bd48252262bf9b76d07708a91df132f3af 100644 (file)
@@ -45,8 +45,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
       std::vector<bool> p_flags(
         dof_handler.get_triangulation().n_active_cells(), true);
@@ -64,8 +63,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
                       p_flags.size());
 
@@ -110,8 +108,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
                       criteria.size());
 
@@ -146,8 +143,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
                       criteria.size());
       Assert((p_refine_fraction >= 0) && (p_refine_fraction <= 1),
@@ -240,8 +236,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
                       criteria.size());
       Assert((p_refine_fraction >= 0) && (p_refine_fraction <= 1),
@@ -433,8 +428,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
                       sobolev_indices.size());
 
@@ -492,8 +486,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
                       criteria.size());
       AssertDimension(dof_handler.get_triangulation().n_active_cells(),
@@ -639,8 +632,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
       for (const auto &cell : dof_handler.active_cell_iterators())
         if (cell->is_locally_owned() && cell->future_fe_index_set())
@@ -658,8 +650,7 @@ namespace hp
     {
       Assert(
         dof_handler.has_hp_capabilities(),
-        (typename dealii::DoFHandler<dim,
-                                     spacedim>::ExcNotAvailableWithoutHP()));
+        (typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
 
       // Siblings of cells to be coarsened may not be owned by the same
       // processor. We will exchange coarsening flags on ghost cells and

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.