]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed sundials/ida.h example of use.
authorAntoni Vidal <anvifer2@upv.es>
Thu, 31 May 2018 16:51:50 +0000 (18:51 +0200)
committerAntoni Vidal <anvifer2@upv.es>
Thu, 31 May 2018 16:51:50 +0000 (18:51 +0200)
include/deal.II/sundials/ida.h

index 14977a0dd7efba5d57b7fe37e9892123d2d8e9d6..c4ce9f24660a929e88398afbb768c70d66bc9588 100644 (file)
@@ -178,6 +178,8 @@ namespace SUNDIALS
    * VectorType y(2);
    * VectorType y_dot(2);
    *
+   * double kappa = 1.0;
+   *
    * FullMatrix<double> A(2,2);
    * A(0,1) = -1.0;
    * A(1,0) = kappa*kappa;
@@ -185,8 +187,6 @@ namespace SUNDIALS
    * FullMatrix<double> J(2,2);
    * FullMatrix<double> Jinv(2,2);
    *
-   * double kappa = 1.0;
-   *
    * IDA time_stepper;
    *
    * time_stepper.reinit_vector = [&] (VectorType&v)

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.