From b2c1e149dbf609781e31520c96f8c3e1e513c9c1 Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 22 Jun 2023 09:45:05 -0400 Subject: [PATCH] Fix compilation with complex PETSc + SUNDIALS. --- source/sundials/n_vector.inst.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/sundials/n_vector.inst.in b/source/sundials/n_vector.inst.in index af9a166459..67d2fc5321 100644 --- a/source/sundials/n_vector.inst.in +++ b/source/sundials/n_vector.inst.in @@ -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 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 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(N_Vector); @@ -125,4 +126,5 @@ for (V : DEAL_II_VEC_TEMPLATES) template class SUNDIALS::internal::NVectorView; template class SUNDIALS::internal::NVectorView; } +# endif #endif -- 2.39.5