From: Peter Munch Date: Sat, 11 Jun 2022 15:53:26 +0000 (+0200) Subject: precondition.h: switch from Assert to AssertThrow X-Git-Tag: v9.4.0-rc1~33^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13958%2Fhead;p=dealii.git precondition.h: switch from Assert to AssertThrow --- 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