From: Marc Fehling Date: Tue, 10 May 2022 20:33:29 +0000 (-0600) Subject: Fix test simplex/step-55. X-Git-Tag: v9.4.0-rc1~241^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13714%2Fhead;p=dealii.git Fix test simplex/step-55. --- diff --git a/include/deal.II/lac/trilinos_sparse_matrix.h b/include/deal.II/lac/trilinos_sparse_matrix.h index 88d6f536a6..54787088df 100644 --- a/include/deal.II/lac/trilinos_sparse_matrix.h +++ b/include/deal.II/lac/trilinos_sparse_matrix.h @@ -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;