]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use 'greater than or equal to' instead of 'not less than'. 13788/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 23 May 2022 02:35:16 +0000 (22:35 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 24 May 2022 02:33:44 +0000 (22:33 -0400)
source/sundials/kinsol.cc

index dd6796bdfc7f4483c5adaf7f0084d56ce7c4686d..97869c426b68ce2b985a4ee929566ac4f88b87f4 100644 (file)
@@ -313,11 +313,11 @@ namespace SUNDIALS
   {
     set_functions_to_trigger_an_assert();
 
-    #if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
     const int status = SUNContext_Create(&mpi_communicator, &kinsol_ctx);
     (void)status;
     AssertKINSOL(status);
-    #endif
+#  endif
   }
 
 
@@ -355,7 +355,7 @@ namespace SUNDIALS
 
     if (get_solution_scaling)
       u_scale = internal::make_nvector_view(get_solution_scaling()
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                               ,
                                             kinsol_ctx
 #  endif
@@ -365,7 +365,7 @@ namespace SUNDIALS
         reinit_vector(u_scale_temp);
         u_scale_temp = 1.0;
         u_scale      = internal::make_nvector_view(u_scale_temp
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                               ,
                                               kinsol_ctx
 #  endif
@@ -374,7 +374,7 @@ namespace SUNDIALS
 
     if (get_function_scaling)
       f_scale = internal::make_nvector_view(get_function_scaling()
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                               ,
                                             kinsol_ctx
 #  endif
@@ -384,7 +384,7 @@ namespace SUNDIALS
         reinit_vector(f_scale_temp);
         f_scale_temp = 1.0;
         f_scale      = internal::make_nvector_view(f_scale_temp
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                               ,
                                               kinsol_ctx
 #  endif
@@ -406,7 +406,7 @@ namespace SUNDIALS
       }
 
     auto solution = internal::make_nvector_view(initial_guess_and_solution
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                 ,
                                                 kinsol_ctx
 #  endif
@@ -419,7 +419,7 @@ namespace SUNDIALS
       {
         KINFree(&kinsol_mem);
 
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
         status = SUNContext_Free(&kinsol_ctx);
         AssertKINSOL(status);
 #  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.