]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove code for SUNDIALS versions prior to 3.0. 12482/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 25 May 2021 19:31:15 +0000 (13:31 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 21 Jun 2021 17:39:29 +0000 (11:39 -0600)
source/sundials/arkode.cc

index 149200e00a18ca2d69bfef02e25b8ffe73dda263..7626bcea664a8f71757cc85d7b193b425df6d665 100644 (file)
@@ -129,11 +129,7 @@ namespace SUNDIALS
                                       *src_ypred,
                                       *src_fpred,
                                       jcurPtr_tmp);
-#    if DEAL_II_SUNDIALS_VERSION_GTE(2, 0, 0)
-      *jcurPtr = jcurPtr_tmp ? SUNTRUE : SUNFALSE;
-#    else
-      *jcurPtr = jcurPtr_tmp ? TRUE : FALSE;
-#    endif
+      *jcurPtr         = jcurPtr_tmp ? SUNTRUE : SUNFALSE;
 
       return err;
     }
@@ -144,11 +140,8 @@ namespace SUNDIALS
     int
     solve_with_jacobian_callback(ARKodeMem arkode_mem,
                                  N_Vector  b,
-#    if DEAL_II_SUNDIALS_VERSION_LT(3, 0, 0)
-                                 N_Vector,
-#    endif
-                                 N_Vector ycur,
-                                 N_Vector fcur)
+                                 N_Vector  ycur,
+                                 N_Vector  fcur)
     {
       Assert(arkode_mem->ark_user_data != nullptr, ExcInternalError());
       ARKode<VectorType> &solver =
@@ -192,14 +185,7 @@ namespace SUNDIALS
 
     template <typename VectorType>
     int
-    solve_with_mass_matrix_callback(ARKodeMem arkode_mem,
-#    if DEAL_II_SUNDIALS_VERSION_LT(3, 0, 0)
-                                    N_Vector b,
-                                    N_Vector
-#    else
-                                    N_Vector b
-#    endif
-    )
+    solve_with_mass_matrix_callback(ARKodeMem arkode_mem, N_Vector b)
     {
       Assert(arkode_mem->ark_user_data != nullptr, ExcInternalError());
       ARKode<VectorType> &solver =
@@ -580,9 +566,6 @@ namespace SUNDIALS
         if (setup_jacobian)
           {
             ARKode_mem->ark_lsetup = setup_jacobian_callback<VectorType>;
-#    if DEAL_II_SUNDIALS_VERSION_LT(3, 0, 0)
-            ARKode_mem->ark_setupNonNull = true;
-#    endif
           }
       }
     else
@@ -600,9 +583,6 @@ namespace SUNDIALS
         if (setup_mass)
           {
             ARKode_mem->ark_msetup = setup_mass_matrix_callback<VectorType>;
-#    if DEAL_II_SUNDIALS_VERSION_LT(3, 0, 0)
-            ARKode_mem->ark_MassSetupNonNull = true;
-#    endif
           }
       }
 

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.