################################################################################
# Add additional packages, if present
+# arpack
if [ ! -z "${ARPACK_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with ARPACK"
CONFOPTS="\
-D ARPACK_DIR=${ARPACK_DIR}"
fi
+# metis
+if [[ ${PACKAGES_OFF} =~ 'metis' ]]; then
+ # Disable METIS for deal.II, if a special DEAL_CONFOPTS together with
+ # the dealii-prepare loop forces metis to be off
+ if [ ! -z "${METIS_DIR}" ]; then
+ cecho ${INFO} "deal.II: unset METIS_DIR due to forced DEAL_II_WITH_METIS:BOOL=OFF option"
+ unset METIS_DIR
+ fi
+fi
+
if [ ! -z "${METIS_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with METIS"
CONFOPTS="\
-D METIS_DIR=${METIS_DIR}"
fi
+# mumps
if [ ! -z "${MUMPS_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with MUMPS"
CONFOPTS="\
-D MUMPS_DIR=${MUMPS_DIR}"
fi
+# p4est
if [ ! -z "${P4EST_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with P4EST"
CONFOPTS="\
-D P4EST_DIR=${P4EST_DIR}"
fi
+# hdf5
if [ ! -z "${HDF5_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with HDF5"
CONFOPTS="\
-D HDF5_DIR=${HDF5_DIR}"
fi
+# trilinos
if [ ! -z "${TRILINOS_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with TRILINOS"
CONFOPTS="\
-D TRILINOS_DIR=${TRILINOS_DIR}"
fi
+# petsc
if [ ! -z "${PETSC_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with PETSC"
CONFOPTS="\
-D PETSC_DIR=${PETSC_DIR}"
fi
+# slepc
if [ ! -z "${SLEPC_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with SLEPC"
CONFOPTS="\
-D SLEPC_DIR=${SLEPC_DIR}"
fi
+# opencascade
if [ ! -z "${OPENCASCADE_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with OPENCASCADE"
CONFOPTS="\
-D DEAL_II_WITH_OPENCASCADE:BOOL=ON"
fi
-read
-
################################################################################
################################################################################
# **********************************************************************************