]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor updates to the IDA documentation and test cases. 17055/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 21 May 2024 22:19:58 +0000 (16:19 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 21 May 2024 22:19:58 +0000 (16:19 -0600)
include/deal.II/sundials/ida.h
tests/sundials/ida_01.cc
tests/sundials/ida_02.cc

index 0a392906bbb0264ee1f0fd38a67871449403a9ac..8dc48791aae46753708c521b9d6271e31c4920e5 100644 (file)
@@ -151,10 +151,10 @@ namespace SUNDIALS
    * \end{matrix}
    * \f]
    *
-   * That is $F(y', y, t) = y' + A y = 0 $
+   * That is, $F(y', y, t) = y' + A y = 0 $
    * where
-   * A =
    * \f[
+   * A =
    * \begin{pmatrix}
    * 0 & -1 \\
    * k^2 &0
@@ -206,8 +206,8 @@ namespace SUNDIALS
    * {
    *   J = A;
    *
-   *   J(0,0) = alpha;
-   *   J(1,1) = alpha;
+   *   J(0,0) += alpha;
+   *   J(1,1) += alpha;
    *
    *   Jinv.invert(J);
    * };
index afbf86750843c469fb4e18fb46ff0e5d8f1b90f4..1df9c52d708a84f5f696da2f90f99ef714ffa502 100644 (file)
@@ -30,7 +30,7 @@
  * u (0) = 0
  * u'(0) = k
  *
- * write in terms of a first order ode:
+ * written in terms of a first order ode:
  *
  * y[0]' -     y[1]  = 0
  * y[1]' + k^2 y[0]  = 0
@@ -89,8 +89,8 @@ public:
 
       J = A;
 
-      J(0, 0) = alpha;
-      J(1, 1) = alpha;
+      J(0, 0) += alpha;
+      J(1, 1) += alpha;
 
       Jinv.invert(J);
     };
index 0af53390ab1a293964d1f8cb74f05b389d47107a..ecc7882dea24fb494578b73e4df4bc955edff18a 100644 (file)
@@ -33,7 +33,7 @@
  * u (0) = 0
  * u'(0) = k
  *
- * write in terms of a first order ode:
+ * written in terms of a first order ode:
  *
  * y[0]' -     y[1]  = 0
  * y[1]' + k^2 y[0]  = 0
@@ -92,8 +92,8 @@ public:
 
       J = A;
 
-      J(0, 0) = alpha;
-      J(1, 1) = alpha;
+      J(0, 0) += alpha;
+      J(1, 1) += alpha;
     };
 
     time_stepper.solve_with_jacobian =

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.