Skip to content

Commit

Permalink
Merge pull request #13958 from peterrum/precon_assert_throw
Browse files Browse the repository at this point in the history
precondition.h: switch from Assert to AssertThrow
  • Loading branch information
kronbichler committed Jun 12, 2022
2 parents 990806d + 994f5be commit 7ca1362
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions include/deal.II/lac/precondition.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename VectorType>
Expand Down Expand Up @@ -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 <typename VectorType,
Expand All @@ -715,8 +716,9 @@ namespace internal
void
Tstep(VectorType &, const VectorType &) const
{
Assert(false,
ExcMessage("Matrix A does not provide a TSOR_step() function!"));
AssertThrow(false,
ExcMessage(
"Matrix A does not provide a TSOR_step() function!"));
}

private:
Expand Down Expand Up @@ -797,8 +799,9 @@ namespace internal
void
step(VectorType &, const VectorType &) const
{
Assert(false,
ExcMessage("Matrix A does not provide a SSOR_step() function!"));
AssertThrow(false,
ExcMessage(
"Matrix A does not provide a SSOR_step() function!"));
}

template <typename VectorType>
Expand Down Expand Up @@ -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 <typename MatrixType,
Expand Down

0 comments on commit 7ca1362

Please sign in to comment.