]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: turn of metis for deal.II, if automatically detected by DEAL_CONFOPTS from...
authorUwe Köcher <koecher@hsu-hamburg.de>
Tue, 10 Nov 2015 21:38:45 +0000 (22:38 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Tue, 10 Nov 2015 21:38:45 +0000 (22:38 +0100)
NOTE: allows to build parmetis&superlu for trilinos without getting in trouble with deal.II metis setting

deal.II-toolchain/packages/dealii.package

index 07869a000fa93feaf0a9f04848f0017ceab79a36..2da0a7b52467d3c7a4df2a18fc0a58e3052ae6d1 100644 (file)
@@ -31,6 +31,7 @@ ${DEAL_CONFOPTS} \
 ################################################################################
 # Add additional packages, if present
 
+# arpack
 if [ ! -z "${ARPACK_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with ARPACK"
     CONFOPTS="\
@@ -39,6 +40,16 @@ if [ ! -z "${ARPACK_DIR}" ]; then
         -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="\
@@ -47,6 +58,7 @@ if [ ! -z "${METIS_DIR}" ]; then
         -D METIS_DIR=${METIS_DIR}"
 fi
 
+# mumps
 if [ ! -z "${MUMPS_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with MUMPS"
     CONFOPTS="\
@@ -54,6 +66,7 @@ if [ ! -z "${MUMPS_DIR}" ]; then
         -D MUMPS_DIR=${MUMPS_DIR}"
 fi
 
+# p4est
 if [ ! -z "${P4EST_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with P4EST"
     CONFOPTS="\
@@ -62,6 +75,7 @@ if [ ! -z "${P4EST_DIR}" ]; then
         -D P4EST_DIR=${P4EST_DIR}"
 fi
 
+# hdf5
 if [ ! -z "${HDF5_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with HDF5"
     CONFOPTS="\
@@ -70,6 +84,7 @@ if [ ! -z "${HDF5_DIR}" ]; then
         -D HDF5_DIR=${HDF5_DIR}"
 fi
 
+# trilinos
 if [ ! -z "${TRILINOS_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with TRILINOS"
     CONFOPTS="\
@@ -78,6 +93,7 @@ if [ ! -z "${TRILINOS_DIR}" ]; then
         -D TRILINOS_DIR=${TRILINOS_DIR}"
 fi
 
+# petsc
 if [ ! -z "${PETSC_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with PETSC"
     CONFOPTS="\
@@ -86,6 +102,7 @@ if [ ! -z "${PETSC_DIR}" ]; then
         -D PETSC_DIR=${PETSC_DIR}"
 fi
 
+# slepc
 if [ ! -z "${SLEPC_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with SLEPC"
     CONFOPTS="\
@@ -94,6 +111,7 @@ if [ ! -z "${SLEPC_DIR}" ]; then
         -D SLEPC_DIR=${SLEPC_DIR}"
 fi
 
+# opencascade
 if [ ! -z "${OPENCASCADE_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with OPENCASCADE"
     CONFOPTS="\
@@ -101,8 +119,6 @@ if [ ! -z "${OPENCASCADE_DIR}" ]; then
         -D DEAL_II_WITH_OPENCASCADE:BOOL=ON"
 fi
 
-read
-
 ################################################################################
 ################################################################################
 # **********************************************************************************

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.