From: David Wells Date: Thu, 22 Jun 2023 13:45:05 +0000 (-0400) Subject: Fix compilation with complex PETSc + SUNDIALS. X-Git-Tag: v9.5.0-rc1~44^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15434%2Fhead;p=dealii.git Fix compilation with complex PETSc + SUNDIALS. --- 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