default PROCS=1
default STABLE_BUILD=true
default USE_SNAPSHOTS=false
+default PACKAGES_OFF=""
# Check if project was specified correctly
if [ -d ${PROJECT} ]; then
SKIP=false
case ${PACKAGE} in
skip:*) SKIP=true; PACKAGE=${PACKAGE#*:};;
- once:*) SKIP=maybe; PACKAGE=${PACKAGE#*:};;
+ once:*)
+ # If the package is turned off in the deal.II configuration, do not
+ # install it.
+ PACKAGE=${PACKAGE#*:};
+ if [[ ${PACKAGES_OFF} =~ ${PACKAGE} ]]; then
+ SKIP=true;
+ else
+ SKIP=maybe;
+ fi;;
esac
# Check if the package exists
# installed.
STABLE_BUILD=true
#STABLE_BUILD=false
+
+
+####################################
+### DO NOT MODIFY THE CODE BELOW ###
+####################################
+
+# Loop over the options in DEAL_CONFOPTS and if the package is turned off, add
+# it to the PACKAGES_OFF list.
+for PACKAGE in ${DEAL_CONFOPTS[@]}; do
+ case ${PACKAGE} in
+ *DEAL_II_WITH*:BOOL=OFF)
+ PACKAGE_NAME=${PACKAGE##*WITH_};
+ PACKAGE_NAME=${PACKAGE_NAME%%:BOOL*};
+ PACKAGES_OFF=${PACKAGE_NAME}' '${PACKAGES_OFF};;
+ esac
+done
+
+# Turn off parmetis if metis is off.
+if [[ ${PACKAGES_OFF} =~ 'METIS' ]]; then
+ PACKAGES_OFF=${PACKAGES_OFF}' PARMETIS';
+fi
+
+# Turn off SuperLU_dist of Trilinos is off.
+if [[ ${PACKAGES_OFF} =~ 'TRILINOS' ]]; then
+ PACKAGES_OFF=${PACKAGES_OFF}' SUPERLU_DIST';
+fi
+
+# Transorm upper case to lower case.
+PACKAGES_OFF=${PACKAGES_OFF,,}