]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: small code refactoring
authorMatthias Maier <tamiko@43-1.org>
Mon, 24 Mar 2025 23:13:48 +0000 (18:13 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 25 Mar 2025 15:06:32 +0000 (10:06 -0500)
cmake/configure/configure_20_petsc.cmake

index f3a237da7ecab21d7d2d7effc37a80ff8cd876ac..6c91802d424960bb5539401ad888745f4f9477d5 100644 (file)
@@ -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})

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.