]> https://gitweb.dealii.org/ - dealii.git/commitdiff
precondition.h: switch from Assert to AssertThrow 13958/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 11 Jun 2022 15:53:26 +0000 (17:53 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 11 Jun 2022 15:53:26 +0000 (17:53 +0200)
include/deal.II/lac/precondition.h

index ce6385cecc1691fb6756761940f7c6ce1cebbaa5..beacf721b6171849fff90bbff8f25f980e375dae 100644 (file)
@@ -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>
@@ -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,
@@ -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:
@@ -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>
@@ -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,

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.