Currently, the following variables will be considered:
METIS_DIR,
+ MUMPS_DIR (and SCALAPACK_DIR),
P4EST_DIR (and SC_DIR),
PETSC_DIR and PETSC_ARCH (forming ${PETSC_DIR}/${PETSC_ARCH}),
TRILINOS_DIR,
- UMFPACK_DIR (and AMD_DIR)
+ UMFPACK_DIR (and AMD_DIR, SUITESPARSECONFIG_DIR)
3.) The system default locations for libraries and includes.
ENDMACRO()
+SET(FEATURE_MUMPS_CUSTOM_ERROR_MESSAGE TRUE)
+
+
+MACRO(FEATURE_MUMPS_ERROR_MESSAGE)
+ MESSAGE(SEND_ERROR "\n"
+ "Could not find the mumps library!\n"
+ "Please ensure that the library is installed on your computer.\n"
+ "If the libraries is not at a default location, either provide some hints\n"
+ "for the autodetection:\n"
+ " $ MUMPS_DIR=\"...\" cmake <...>\n"
+ " $ ccmake -DMUMPS_DIR=\"...\" cmake <...>\n"
+ "or set the relevant variables by hand in ccmake.\n"
+ "Relevant hints for MUMPS are MUMPS_DIR and SCALAPACK_DIR.\n\n"
+ )
+ENDMACRO()
+
+
CONFIGURE_FEATURE(MUMPS)
" $ UMFPACK_DIR=\"...\" cmake <...>\n"
" $ ccmake -DUMFPACK_DIR=\"...\" cmake <...>\n"
"or set the relevant variables by hand in ccmake.\n"
+ "Relevant hints for UMFPACK are UMFPACK_DIR, AMD_DIR, SUITESPARSECONFIG_DIR.\n"
"Alternatively you may choose to compile the bundled libraries\n"
- "by setting DEAL_II_ALLOW_BUNDLED=ON or DEAL_II_FORCE_BUNDLED_UMFPACK=ON.\n\n"
+ "by setting DEAL_II_ALLOW_BUNDLED=ON or DEAL_II_FORCE_BUNDLED_UMFPACK=ON.\n"
+ "(BLAS has to be installed for bundled UMFPACK to be available)\n\n"
)
ENDMACRO()
FIND_PACKAGE(SCALAPACK) # which will also include lapack and blas
#
+# TODO: mumps might link to scotch and or metis as well. Ignore this for
+# now. :-]
# TODO: libpord.a ?
#
# SCALAPACK needs LAPACK and BLAS as dependency, search for them with the help
# of the LAPACK find module:
#
-# TODO: SCALAPACK and mpi...
+# TODO: ScaLAPACK and mpi...
#
FIND_PACKAGE(LAPACK)
# probabilistic way...
#
FIND_LIBRARY(BLACS_LIBRARY
- NAMES blacs
+ NAMES blacs # TODO
${BLACS_DIR}
${SCALAPACK_DIR}
${SCALAPACK_DIR}/../blacs/