]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix general_data_storage test 8175/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 15 May 2019 04:28:57 +0000 (06:28 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 15 May 2019 12:06:27 +0000 (14:06 +0200)
include/deal.II/algorithms/general_data_storage.h
tests/algorithms/general_data_storage_01.output [moved from tests/algorithms/general_data_storage_01.debug.output with 100% similarity]
tests/algorithms/general_data_storage_01.output.2 [moved from tests/algorithms/general_data_storage_01.debug.output.2 with 100% similarity]
tests/algorithms/general_data_storage_01.release.output [deleted file]

index 1c68fb38bb3f47957012c88627436886472e3c26..6e58609b5db4eef4d1252988cbf9fa051652e684 100644 (file)
@@ -363,7 +363,7 @@ template <typename Type>
 void
 GeneralDataStorage::add_unique_copy(const std::string &name, const Type &entry)
 {
-  Assert(!stores_object_with_name(name), ExcNameHasBeenFound(name));
+  AssertThrow(!stores_object_with_name(name), ExcNameHasBeenFound(name));
   add_or_overwrite_copy(name, entry);
 }
 
@@ -381,7 +381,7 @@ template <typename Type>
 void
 GeneralDataStorage::add_unique_reference(const std::string &name, Type &entry)
 {
-  Assert(!stores_object_with_name(name), ExcNameHasBeenFound(name));
+  AssertThrow(!stores_object_with_name(name), ExcNameHasBeenFound(name));
   add_or_overwrite_reference(name, entry);
 }
 
@@ -400,7 +400,7 @@ template <typename Type>
 Type &
 GeneralDataStorage::get_object_with_name(const std::string &name)
 {
-  Assert(stores_object_with_name(name), ExcNameNotFound(name));
+  AssertThrow(stores_object_with_name(name), ExcNameNotFound(name));
 
   Type *p = nullptr;
 
diff --git a/tests/algorithms/general_data_storage_01.release.output b/tests/algorithms/general_data_storage_01.release.output
deleted file mode 100644 (file)
index 9384e0f..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-
-DEAL::Add by copy
-DEAL::Size: 2
-DEAL::Add by reference
-DEAL::Size: 2
-DEAL::Add or construct
-DEAL::Size: 1
-DEAL::Merge
-DEAL::Data pre-merge:
-DEAL::value            double
-DEAL::Size: 1
-DEAL::Data 2 pre-merge:
-DEAL::value            double
-DEAL::value_2          double
-DEAL::Size: 2
-DEAL::Data post-merge:
-DEAL::value            double
-DEAL::value_2          double
-DEAL::Size: 2
-DEAL::Ambiguous construction
-DEAL::Try to overwrite existing entry: Copy
-DEAL::Try to overwrite existing entry: Reference
-DEAL::Fetch non-existing entry
-DEAL::Access removed entry (reference)
-DEAL::Access removed entry (copy)

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.