Package: deal.ii / 9.0.1-1

allow_different_slepc_petsc_versions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/cmake/configure/configure_slepc.cmake b/cmake/configure/configure_slepc.cmake
index 35d139e..e27fb83 100644
--- a/cmake/configure/configure_slepc.cmake
+++ b/cmake/configure/configure_slepc.cmake
@@ -24,36 +24,7 @@ MACRO(FEATURE_SLEPC_FIND_EXTERNAL var)
   FIND_PACKAGE(SLEPC)
 
   IF(SLEPC_FOUND)
-    #
-    # Check whether SLEPc and PETSc are compatible according to
-    # SLEPc's rules: This is equivalent to asking if the VERSION_MAJOR
-    # and VERSION_MINOR of PETSc and SLEPc are
-    # equivalent; and where VERSION_SUBMINORs are allowed to differ.
-    #
-    IF( ("${SLEPC_VERSION_MAJOR}" STREQUAL "${PETSC_VERSION_MAJOR}")
-       AND
-       ("${SLEPC_VERSION_MINOR}" STREQUAL "${PETSC_VERSION_MINOR}"))
-      SET(${var} TRUE)
-    ELSE()
-
-      MESSAGE(STATUS "Could not find a sufficient SLEPc installation: "
-        "The SLEPc library must have the same version as the PETSc library."
-        )
-      SET(SLEPC_ADDITIONAL_ERROR_STRING
-        "Could not find a sufficient SLEPc installation: "
-        "The SLEPc library must have the same version as the PETSc library.\n"
-        )
-
-      UNSET(SLEPC_INCLUDE_DIR_ARCH CACHE)
-      UNSET(SLEPC_INCLUDE_DIR_COMMON CACHE)
-      UNSET(SLEPC_LIBRARY CACHE)
-      SET(SLEPC_DIR "" CACHE PATH
-        "An optional hint to a SLEPc directory"
-        )
-      MARK_AS_ADVANCED(CLEAR SLEPC_DIR)
-
-      SET(${var} FALSE)
-    ENDIF()
+    SET(${var} TRUE)
   ENDIF()
 ENDMACRO()