]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Demote an assertion from AssertThrow to Assert. 16125/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 11 Oct 2023 16:09:54 +0000 (10:09 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 11 Oct 2023 16:09:54 +0000 (10:09 -0600)
source/particles/property_pool.cc

index 5abbd313072ad16051b2305bedcdd43004cd3c2b..8d9fd19c451bf274e77a07db65b3fa8b22d05053 100644 (file)
@@ -53,13 +53,13 @@ namespace Particles
         const unsigned int n_open_handles =
           properties.size() / n_properties - currently_available_handles.size();
         (void)n_open_handles;
-        AssertThrow(n_open_handles == 0,
-                    ExcMessage("This property pool currently still holds " +
-                               std::to_string(n_open_handles) +
-                               " open handles to memory that was allocated "
-                               "via allocate_properties_array() but that has "
-                               "not been returned via "
-                               "deregister_particle()."));
+        Assert(n_open_handles == 0,
+               ExcMessage("This property pool currently still holds " +
+                          std::to_string(n_open_handles) +
+                          " open handles to memory that was allocated "
+                          "via allocate_properties_array() but that has "
+                          "not been returned via "
+                          "deregister_particle()."));
       }
 
     // Clear vectors and ensure deallocation of memory

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.