From: Wolfgang Bangerth Date: Wed, 11 Oct 2023 16:09:54 +0000 (-0600) Subject: Demote an assertion from AssertThrow to Assert. X-Git-Tag: relicensing~398^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d58343884f57f333d9e37c85ad69c71fdebe95f9;p=dealii.git Demote an assertion from AssertThrow to Assert. --- diff --git a/source/particles/property_pool.cc b/source/particles/property_pool.cc index 5abbd31307..8d9fd19c45 100644 --- a/source/particles/property_pool.cc +++ b/source/particles/property_pool.cc @@ -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