# https://software.sandia.gov/bugzilla/show_bug.cgi?id=5062
# https://software.sandia.gov/bugzilla/show_bug.cgi?id=5319
#
- IF(TRILINOS_MAJOR EQUAL 10 AND TRILINOS_MINOR EQUAL 6)
+ IF(TRILINOS_VERSION_MAJOR EQUAL 10 AND TRILINOS_VERSION_MINOR EQUAL 6)
MESSAGE(WARNING "\n"
- "Trilinos versions ${TRILINOS_MAJOR}.${TRILINOS_MINOR}.x have bugs that make\n"
+ "Trilinos versions ${TRILINOS_VERSION_MAJOR}.${TRILINOS_VERSION_MINOR}.x have bugs that make\n"
"it incompatible with deal.II. Please use versions before 10.6 or after\n"
"10.8.1.\n\n"
)
# The same is unfortunately true for 10.8.[01]:
# https://software.sandia.gov/bugzilla/show_bug.cgi?id=5370
#
- IF( TRILINOS_MAJOR EQUAL 10 AND
- TRILINOS_MINOR EQUAL 8 AND
- TRILINOS_SUBMINOR LESS 2 )
+ IF( TRILINOS_VERSION_MAJOR EQUAL 10 AND
+ TRILINOS_VERSION_MINOR EQUAL 8 AND
+ TRILINOS_VERSION_SUBMINOR LESS 2 )
MESSAGE(WARNING "\n"
"Trilinos versions 10.8.0 and 10.8.1 have bugs that make\n"
"it incompatible with deal.II. Please use versions before 10.6 or after\n"
)
IF(NOT PETSC_LIBMPIUNI MATCHES "-NOTFOUND")
LIST(APPEND PETSC_LIBRARIES "${PETSC_LIBMPIUNI}")
+ ELSE()
+ SET(PETSC_LIBMPIUNI "")
ENDIF()
MARK_AS_ADVANCED(PETSC_LIBMPIUNI)
ENDIF()
#
# Try to find the Trilinos library
#
+# This module exports:
+#
+# TRILINOS_DIR
+# TRILINOS_INCLUDE_DIRS
+# TRILINOS_LIBRARY_*
+# TRILINOS_LIBRARIES
+# TRILINOS_VERSION_MAJOR
+# TRILINOS_VERSION_MINOR
+# TRILINOS_VERSION_SUBMINOR
+#
INCLUDE(FindPackageHandleStandardArgs)
#
STRING(REGEX REPLACE
"^([0-9]+).*$" "\\1"
- TRILINOS_MAJOR "${Trilinos_VERSION}")
+ TRILINOS_VERSION_MAJOR "${Trilinos_VERSION}")
STRING(REGEX REPLACE
"^[0-9]+\\.([0-9]+).*$" "\\1"
- TRILINOS_MINOR "${Trilinos_VERSION}")
+ TRILINOS_VERSION_MINOR "${Trilinos_VERSION}")
STRING(REGEX REPLACE
"^[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1"
- TRILINOS_SUBMINOR "${Trilinos_VERSION}")
+ TRILINOS_VERSION_SUBMINOR "${Trilinos_VERSION}")
SET(TRILINOS_INCLUDE_DIRS ${Trilinos_INCLUDE_DIRS})
COND_SET_TO_YES(DEAL_II_WITH_FUNCTIONPARSER MAKEFILE_enableparser)
COND_SET_TO_YES(BUILD_SHARED_LIBS MAKEFILE_enableshared)
+ COND_SET_TO_YES(DEAL_II_WITH_PETSC MAKEFILE_PETSC)
+ COND_SET_TO_YES(DEAL_II_USE_PETSC_DEV MAKEFILE_PETSC_DEV)
COND_SET_TO_YES(DEAL_II_WITH_TRILINOS MAKEFILE_TRILINOS)
COND_SET_TO_YES(DEAL_II_WITH_BLAS MAKEFILE_BLAS)
COND_SET_TO_YES(DEAL_II_WITH_LAPACK MAKEFILE_LAPACK)
# TODO: Reenable or remove
#
-#USE_CONTRIB_PETSC = @USE_CONTRIB_PETSC@
-#DEAL_II_PETSC_DIR = @DEAL_II_PETSC_DIR@
-#DEAL_II_PETSC_ARCH = @DEAL_II_PETSC_ARCH@
-#DEAL_II_PETSC_VERSION_MAJOR = @DEAL_II_PETSC_VERSION_MAJOR@
-#DEAL_II_PETSC_VERSION_MINOR = @DEAL_II_PETSC_VERSION_MINOR@
-#DEAL_II_PETSC_VERSION_SUBMINOR = @DEAL_II_PETSC_VERSION_SUBMINOR@
-#DEAL_II_PETSC_VERSION_DEV = @DEAL_II_PETSC_VERSION_DEV@
-#DEAL_II_PETSC_MPIUNI_LIB = @DEAL_II_PETSC_MPIUNI_LIB@
+USE_CONTRIB_PETSC = @MAKEFILE_PETSC@
+DEAL_II_PETSC_DIR = @PETSC_DIR@ # TODO: Fix this!
+DEAL_II_PETSC_ARCH = @PETSC_ARCH@
+DEAL_II_PETSC_VERSION_MAJOR = @PETSC_VERSION_MAJOR@
+DEAL_II_PETSC_VERSION_MINOR = @PETSC_VERSION_MINOR@
+DEAL_II_PETSC_VERSION_SUBMINOR = @PETSC_VERSION_SUBMINOR@
+DEAL_II_PETSC_VERSION_DEV = @MAKEFILE_PETSC_DEV@
+DEAL_II_PETSC_MPIUNI_LIB = @PETSC_LIBMPIUNI@
#USE_CONTRIB_SLEPC = @USE_CONTRIB_SLEPC@
#DEAL_II_SLEPC_DIR = @DEAL_II_SLEPC_DIR@
#DEAL_II_TRILINOS_LIBDIR = @DEAL_II_TRILINOS_LIBDIR@ # TODO
#DEAL_II_TRILINOS_SHARED = @DEAL_II_TRILINOS_SHARED@ # TODO
#DEAL_II_TRILINOS_STATIC = @DEAL_II_TRILINOS_STATIC@ # TODO
-DEAL_II_TRILINOS_VERSION_MAJOR = @TRILINOS_MAJOR@
-DEAL_II_TRILINOS_VERSION_MINOR = @TRILINOS_MINOR@
-DEAL_II_TRILINOS_VERSION_SUBMINOR = @TRILINOS_SUBMINOR@
+DEAL_II_TRILINOS_VERSION_MAJOR = @TRILINOS_VERSION_MAJOR@
+DEAL_II_TRILINOS_VERSION_MINOR = @TRILINOS_VERSION_MINOR@
+DEAL_II_TRILINOS_VERSION_SUBMINOR = @TRILINOS_VERSION_SUBMINOR@
#DEAL_II_TRILINOS_LIBPREFIX = @DEAL_II_TRILINOS_LIBPREFIX@ # TODO
#USE_CONTRIB_HDF5 = @USE_CONTRIB_HDF5@