]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with complex PETSc + SUNDIALS. 15434/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 22 Jun 2023 13:45:05 +0000 (09:45 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 22 Jun 2023 14:09:49 +0000 (10:09 -0400)
source/sundials/n_vector.inst.in

index af9a1664590b4b0c331667591f65054ef8114ec9..67d2fc5321427751b7688c4421eaaf440f997e03 100644 (file)
@@ -100,22 +100,23 @@ for (V : DEAL_II_VEC_TEMPLATES)
 #endif
 
 #ifdef DEAL_II_WITH_PETSC
+#  ifndef DEAL_II_PETSC_WITH_COMPLEX
 // PETScWrappers Vector and BlockVector
 for (V : DEAL_II_VEC_TEMPLATES)
   {
     template SUNDIALS::internal::NVectorView<PETScWrappers::MPI::V>
     SUNDIALS::internal::make_nvector_view<>(PETScWrappers::MPI::V &
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
                                             ,
                                             SUNContext
-#  endif
+#    endif
     );
     template SUNDIALS::internal::NVectorView<const PETScWrappers::MPI::V>
     SUNDIALS::internal::make_nvector_view<>(const PETScWrappers::MPI::V &
-#  if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
+#    if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0)
                                             ,
                                             SUNContext
-#  endif
+#    endif
     );
     template PETScWrappers::MPI::V
       *SUNDIALS::internal::unwrap_nvector<PETScWrappers::MPI::V>(N_Vector);
@@ -125,4 +126,5 @@ for (V : DEAL_II_VEC_TEMPLATES)
     template class SUNDIALS::internal::NVectorView<PETScWrappers::MPI::V>;
     template class SUNDIALS::internal::NVectorView<const PETScWrappers::MPI::V>;
   }
+#  endif
 #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.