set(${var} FALSE)
endif()
+ if(DEAL_II_PETSC_WITH_KOKKOS)
+ if(DEAL_II_FORCE_BUNDLED_KOKKOS)
+ set(PETSC_ADDITIONAL_ERROR_STRING
+ ${PETSC_ADDITIONAL_ERROR_STRING}
+ "The PETSc installation (found at \"${PETSC_DIR}\")"
+ "includes Kokkos, but DEAL_II_FORCE_BUNDLED_KOKKOS=ON!\n")
+ set(${var} FALSE)
+ endif()
+ endif()
+
+
check_mpi_interface(PETSC ${var})
endif()
endmacro()
set(DEAL_II_PETSC_WITH_COMPLEX ${PETSC_WITH_COMPLEX})
set(DEAL_II_PETSC_WITH_HYPRE ${PETSC_WITH_HYPRE})
set(DEAL_II_PETSC_WITH_MUMPS ${PETSC_WITH_MUMPS})
+set(DEAL_II_PETSC_WITH_KOKKOS ${PETSC_WITH_KOKKOS})
set_if_empty(KOKKOS_DIR "$ENV{KOKKOS_DIR}")
-if(DEAL_II_TRILINOS_WITH_KOKKOS)
+if(DEAL_II_TRILINOS_WITH_KOKKOS OR DEAL_II_PETSC_WITH_KOKKOS)
# Let ArborX know that we have found Kokkos
set(Kokkos_FOUND ON)
# Let deal.II know that we have found Kokkos
# PETSC_WITH_64BIT_INDICES
# PETSC_WITH_COMPLEX
# PETSC_WITH_HYPRE
+# PETSC_WITH_KOKKOS
# PETSC_WITH_MPIUNI
# PETSC_WITH_MUMPS
#
_petsc_feature_check(64BIT_INDICES "#define.*PETSC_USE_64BIT_INDICES 1")
_petsc_feature_check(COMPLEX "#define.*PETSC_USE_COMPLEX 1")
_petsc_feature_check(HYPRE "#define.*PETSC_HAVE_HYPRE 1")
+ _petsc_feature_check(KOKKOS "#define.*PETSC_HAVE_KOKKOS 1")
_petsc_feature_check(MPIUNI "#define.*PETSC_HAVE_MPIUNI 1")
_petsc_feature_check(MUMPS "#define.*PETSC_HAVE_MUMPS 1")
endif()
#cmakedefine DEAL_II_PETSC_WITH_COMPLEX
#cmakedefine DEAL_II_PETSC_WITH_HYPRE
#cmakedefine DEAL_II_PETSC_WITH_MUMPS
+#cmakedefine DEAL_II_PETSC_WITH_KOKKOS
/* cmake/modules/FindSUNDIALS.cmake */
#cmakedefine DEAL_II_SUNDIALS_WITH_IDAS