From 994f5befd1e2969fbf25c498d14bf9551b441790 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sat, 11 Jun 2022 17:53:26 +0200 Subject: [PATCH] precondition.h: switch from Assert to AssertThrow --- include/deal.II/lac/precondition.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/include/deal.II/lac/precondition.h b/include/deal.II/lac/precondition.h index ce6385cecc..beacf721b6 100644 --- a/include/deal.II/lac/precondition.h +++ b/include/deal.II/lac/precondition.h @@ -640,9 +640,9 @@ namespace internal void step(VectorType &, const VectorType &) const { - Assert(false, - ExcMessage( - "Matrix A does not provide a Jacobi_step() function!")); + AssertThrow(false, + ExcMessage( + "Matrix A does not provide a Jacobi_step() function!")); } template @@ -696,8 +696,9 @@ namespace internal void step(VectorType &, const VectorType &) const { - Assert(false, - ExcMessage("Matrix A does not provide a SOR_step() function!")); + AssertThrow(false, + ExcMessage( + "Matrix A does not provide a SOR_step() function!")); } template @@ -985,8 +988,8 @@ namespace internal void Tvmult(const MatrixType &, VectorType &, const VectorType &) { - Assert(false, - ExcMessage("Matrix A does not provide a Tvmult() function!")); + AssertThrow(false, + ExcMessage("Matrix A does not provide a Tvmult() function!")); } template