]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: allow PETSc to be configured with differing ordinals 17481/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 11 Aug 2024 17:50:26 +0000 (12:50 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 11 Aug 2024 17:50:26 +0000 (12:50 -0500)
cmake/configure/configure_20_petsc.cmake

index f3d6034421fceadaa88c4491e0a664a5f2c35c9d..9b55e63bcbfad1c80c5ef42c98b0fe4f9fbb404f 100644 (file)
@@ -63,40 +63,14 @@ macro(feature_petsc_find_external var)
       set(${var} FALSE)
     endif()
 
-    #
-    # PETSc has to be configured with the same number of bits for indices as
-    # deal.II.
-    #
-    # petscconf.h should export PETSC_WITH_64BIT_INDICES 1 in case 64bits
-    # indices support is enabled.
-    # So we check for this:
-    #
-    if( (NOT PETSC_WITH_64BIT_INDICES AND DEAL_II_WITH_64BIT_INDICES)
-         OR
-         (PETSC_WITH_64BIT_INDICES AND NOT DEAL_II_WITH_64BIT_INDICES))
-      message(STATUS "Could not find a sufficient PETSc installation: "
-        "PETSc has to be configured to use the same number of bits for the "
-        "global indices as deal.II."
-        )
-      set(PETSC_ADDITIONAL_ERROR_STRING
-        ${PETSC_ADDITIONAL_ERROR_STRING}
-        "Could not find a sufficient PETSc installation:\n"
-        "PETSc has to be configured to use the same number of bits for the "
-        "global indices as deal.II, but found:\n"
-        "  DEAL_II_WITH_64BIT_INDICES = ${DEAL_II_WITH_64BIT_INDICES}\n"
-        "  PETSC_WITH_64BIT_INDICES = (${PETSC_WITH_64BIT_INDICES})\n"
-        )
-      set(${var} FALSE)
-    endif()
-
     # If PETSc is compiled with complex scalar type we need to have support
     # for complex values within deal.II as well.
     #
-    if( PETSC_WITH_COMPLEX AND NOT DEAL_II_WITH_COMPLEX_VALUES )
+    if(PETSC_WITH_COMPLEX AND NOT DEAL_II_WITH_COMPLEX_VALUES)
         message(STATUS "The PETSc configuration is incompatible with the deal.II configuration: "
-        "PETSc is compiled with complex scalar type. "
-        "This requires support for complex values in deal.II as well."
-        )
+          "PETSc is compiled with complex scalar type. "
+          "This requires support for complex values in deal.II as well."
+          )
       set(PETSC_ADDITIONAL_ERROR_STRING
         ${PETSC_ADDITIONAL_ERROR_STRING}
         "The PETSc configuration is incompatible with the deal.II configuration:\n"

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.