From 5f744b218a8919497653b918bf9a017c23747a9e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 24 Mar 2025 18:13:48 -0500 Subject: [PATCH] CMake: small code refactoring --- cmake/configure/configure_20_petsc.cmake | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/cmake/configure/configure_20_petsc.cmake b/cmake/configure/configure_20_petsc.cmake index f3a237da7e..6c91802d42 100644 --- a/cmake/configure/configure_20_petsc.cmake +++ b/cmake/configure/configure_20_petsc.cmake @@ -99,6 +99,19 @@ endmacro() macro(feature_petsc_configure_external) + # + # Propagate some PETSc configuration variables into DEAL_II namespace: + # + + 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}) + + # + # Figure out all the possible instantiations we need: + # + set(DEAL_II_EXPAND_PETSC_MPI_VECTOR "PETScWrappers::MPI::Vector") set(DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR "PETScWrappers::MPI::BlockVector") set(DEAL_II_EXPAND_PETSC_SPARSE_MATRICES @@ -138,7 +151,3 @@ endmacro() configure_feature(PETSC) -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}) -- 2.39.5