]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test simplex/step-55. 13714/head
authorMarc Fehling <mafehling.git@gmail.com>
Tue, 10 May 2022 20:33:29 +0000 (14:33 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Tue, 10 May 2022 22:16:39 +0000 (16:16 -0600)
include/deal.II/lac/trilinos_sparse_matrix.h

index 88d6f536a6e479c32630d10b8d0f1d2650751fa4..54787088dff64c3729aef0384c5c173823786870 100644 (file)
@@ -2943,15 +2943,11 @@ namespace TrilinosWrappers
         // TODO: fix this (do not run compress here, but fail)
         if (last_action == Insert)
           {
-#      ifdef DEBUG
-            int ierr;
-            ierr =
-#      endif
-              matrix->GlobalAssemble(*column_space_map,
-                                     matrix->RowMap(),
-                                     false);
+            const int ierr = matrix->GlobalAssemble(*column_space_map,
+                                                    matrix->RowMap(),
+                                                    false);
 
-            Assert(ierr == 0, ExcTrilinosError(ierr));
+            AssertThrow(ierr == 0, ExcTrilinosError(ierr));
           }
 
         last_action = Add;

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.