]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with ARKODE. 15241/head
authorDavid Wells <drwells@email.unc.edu>
Fri, 19 May 2023 21:23:59 +0000 (17:23 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 20 May 2023 01:17:17 +0000 (21:17 -0400)
Also fix a test which doesn't seem to throw an exception with newer
versions of SUNDIALS.

source/sundials/arkode.cc
tests/sundials/arkode_11.output.noexception [new file with mode: 0644]

index 824899c4e7b42a49998b6ab3645a7a95854e225e..bbd66ae2472fb8e9b5eb76ae76fad1c63d3153b7 100644 (file)
@@ -660,13 +660,13 @@ namespace SUNDIALS
           {
             linear_solver =
               std::make_unique<internal::LinearSolverWrapper<VectorType>>(
-                solve_linearized_system
+                solve_linearized_system,
+                pending_exception
 #  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                 ,
                 arkode_ctx
 #  endif
-                ,
-                pending_exception);
+              );
             sun_linear_solver = *linear_solver;
           }
         else
@@ -763,13 +763,14 @@ namespace SUNDIALS
           {
             mass_solver =
               std::make_unique<internal::LinearSolverWrapper<VectorType>>(
-                solve_mass
+                solve_mass,
+
+                pending_exception
 #  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                 ,
                 arkode_ctx
 #  endif
-                ,
-                pending_exception);
+              );
             sun_mass_linear_solver = *mass_solver;
           }
         else
diff --git a/tests/sundials/arkode_11.output.noexception b/tests/sundials/arkode_11.output.noexception
new file mode 100644 (file)
index 0000000..18f6b0a
--- /dev/null
@@ -0,0 +1,155 @@
+
+DEAL::0.00000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.00144957
+DEAL:cg::Convergence step 1 value 3.06659e-19
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.0392202
+DEAL:cg::Convergence step 1 value 0.00000
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.100000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.200000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL:cg::Starting value 0.104287
+DEAL:cg::Convergence step 1 value 1.96262e-17
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.300000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.400000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.500000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.600000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.700000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.800000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::0.900000 1.00000 0.00000
+DEAL:mass_preconditioner_setup::applied
+DEAL::Reporting recoverable failure when solving with the mass matrix.
+DEAL::1.00000 1.00000 0.00000

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.