]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Convert "not less than" to "greater than or equal to".
authorDavid Wells <drwells@email.unc.edu>
Sun, 15 May 2022 22:02:28 +0000 (18:02 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 16 May 2022 01:24:14 +0000 (21:24 -0400)
The later is much simpler.

include/deal.II/sundials/arkode.h
include/deal.II/sundials/ida.h
include/deal.II/sundials/kinsol.h
include/deal.II/sundials/n_vector.h
include/deal.II/sundials/n_vector.templates.h
include/deal.II/sundials/sunlinsol_wrapper.h
source/sundials/arkode.cc

index eb31f2e22fcc5a55aa8a587600f419fefb4c59c2..aace0386cd908b30a6f60005c998247cf9f55d9c 100644 (file)
@@ -1267,7 +1267,7 @@ namespace SUNDIALS
      */
     void *arkode_mem;
 
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
     /**
      * A context object associated with the ARKode solver.
      */
index bc50c9b7e4ecd5b7c9fbe1445359fe650345c52f..7b421356aa85575254a3cf8cfab0c50258c28389 100644 (file)
@@ -882,7 +882,7 @@ namespace SUNDIALS
      */
     void *ida_mem;
 
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
     /**
      * A context object associated with the IDA solver.
      */
index df2f6b16c744e75542c04b9a2aa26a24d3513115..22edb99b1280fa408d007896fe4d7af42cb73f73 100644 (file)
@@ -694,7 +694,7 @@ namespace SUNDIALS
      */
     void *kinsol_mem;
 
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
     /**
      * A context object associated with the KINSOL solver.
      */
index 6f959444e693e46886423a0acefb79c9ce59207f..2fb2b03ff963ebb48591674431f9efd00218a128 100644 (file)
@@ -56,7 +56,7 @@ namespace SUNDIALS
      * @tparam VectorType Type of the viewed vector. This parameter can be
      *   deduced automatically and will respect a potential const-qualifier.
      * @param vector The vector to view.
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
      * @param nvector_context A SUNDIALS context object to be used for the
      *   operations we want to do on this vector.
 #  endif
@@ -67,7 +67,7 @@ namespace SUNDIALS
     template <typename VectorType>
     NVectorView<VectorType>
     make_nvector_view(VectorType &vector
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                       ,
                       SUNContext nvector_context
 #  endif
@@ -139,7 +139,7 @@ namespace SUNDIALS
        * Constructor. Create view of @p vector.
        */
       NVectorView(VectorType &vector
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                   ,
                   SUNContext nvector_context
 #  endif
index ee5220d023a3cc21e2ad4f9d9682ceae8c91657e..0aec4c04708dd850c751644fd16e55a7dccd21c2 100644 (file)
@@ -126,7 +126,7 @@ namespace SUNDIALS
     template <typename VectorType>
     N_Vector
     create_nvector(NVectorContent<VectorType> *content
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                    ,
                    SUNContext nvector_context
 #  endif
@@ -139,7 +139,7 @@ namespace SUNDIALS
     template <typename VectorType>
     N_Vector
     create_empty_nvector(
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
       SUNContext nvector_context
 #  endif
     );
@@ -366,14 +366,14 @@ namespace SUNDIALS
     template <typename VectorType>
     NVectorView<VectorType>
     make_nvector_view(VectorType &vector
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                       ,
                       SUNContext nvector_context
 #  endif
     )
     {
       return NVectorView<VectorType>(vector
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                      ,
                                      nvector_context
 #  endif
@@ -410,7 +410,7 @@ namespace SUNDIALS
 
     template <typename VectorType>
     NVectorView<VectorType>::NVectorView(VectorType &vector
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                          ,
                                          SUNContext nvector_context
 #  endif
@@ -419,7 +419,7 @@ namespace SUNDIALS
           create_nvector(
             new NVectorContent<typename std::remove_const<VectorType>::type>(
               &vector)
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
               ,
             nvector_context
 #  endif
@@ -451,7 +451,7 @@ namespace SUNDIALS
     template <typename VectorType>
     N_Vector
     create_nvector(NVectorContent<VectorType> *content
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                    ,
                    SUNContext nvector_context
 #  endif
@@ -983,7 +983,7 @@ namespace SUNDIALS
     template <typename VectorType>
     N_Vector
     create_empty_nvector(
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
       SUNContext nvector_context
 #  endif
     )
index 7ae539e82c295871a3a10e2658abf58e1c5405d4..3edc49376402c9d9960b0e5acae21a73d57e7885 100644 (file)
@@ -167,7 +167,7 @@ namespace SUNDIALS
     {
     public:
       explicit LinearSolverWrapper(LinearSolveFunction<VectorType> lsolve
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                    ,
                                    SUNContext &linsol_ctx
 #    endif
index 83cd451abf8152976bc55efcf85349a86d2f15cd..38f8d7eaa642c1d91f75165a46a2b63469023c78 100644 (file)
@@ -389,7 +389,7 @@ namespace SUNDIALS
         ARKStepFree(&arkode_mem);
 #  endif
 
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
         const int status = SUNContext_Free(&arkode_ctx);
         (void)status;
         AssertARKode(status);
@@ -452,7 +452,7 @@ namespace SUNDIALS
       }
 
     auto solution_nvector = internal::make_nvector_view(solution
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                         ,
                                                         arkode_ctx
 #  endif
@@ -524,7 +524,7 @@ namespace SUNDIALS
     // just a view on the memory in solution, all write operations on yy by
     // ARKODE will automatically be mirrored to solution
     auto initial_condition_nvector = internal::make_nvector_view(solution
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                                  ,
                                                                  arkode_ctx
 #    endif
@@ -541,7 +541,7 @@ namespace SUNDIALS
     if (get_local_tolerances)
       {
         const auto abs_tols = internal::make_nvector_view(get_local_tolerances()
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                             ,
                                                           arkode_ctx
 #    endif
@@ -630,7 +630,7 @@ namespace SUNDIALS
       {
         ARKStepFree(&arkode_mem);
 
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
         const int status = SUNContext_Free(&arkode_ctx);
         (void)status;
         AssertARKode(status);
@@ -643,7 +643,7 @@ namespace SUNDIALS
     // just a view on the memory in solution, all write operations on yy by
     // ARKODE will automatically be mirrored to solution
     auto initial_condition_nvector = internal::make_nvector_view(solution
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                                  ,
                                                                  arkode_ctx
 #    endif
@@ -674,7 +674,7 @@ namespace SUNDIALS
     if (get_local_tolerances)
       {
         const auto abs_tols = internal::make_nvector_view(get_local_tolerances()
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                             ,
                                                           arkode_ctx
 #    endif
@@ -734,7 +734,7 @@ namespace SUNDIALS
             linear_solver =
               std::make_unique<internal::LinearSolverWrapper<VectorType>>(
                 solve_linearized_system
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                 ,
                 arkode_ctx
 #    endif
@@ -746,7 +746,7 @@ namespace SUNDIALS
             // use default solver from SUNDIALS
             // TODO give user options
             auto y_template = internal::make_nvector_view(solution
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                           ,
                                                           arkode_ctx
 #    endif
@@ -793,7 +793,7 @@ namespace SUNDIALS
     else
       {
         auto y_template = internal::make_nvector_view(solution
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                       ,
                                                       arkode_ctx
 #    endif
@@ -836,7 +836,7 @@ namespace SUNDIALS
             mass_solver =
               std::make_unique<internal::LinearSolverWrapper<VectorType>>(
                 solve_mass
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                 ,
                 arkode_ctx
 #    endif
@@ -846,7 +846,7 @@ namespace SUNDIALS
         else
           {
             auto y_template = internal::make_nvector_view(solution
-#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
                                                           ,
                                                           arkode_ctx
 #    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.