+################################################################################
+## ARPACK-NG ##
+################################################################################
+
VERSION=3.8.0
NAME=arpack-ng.git
EXTRACTSTO=arpack-ng-${VERSION}
INSTALL_PATH=${INSTALL_PATH}/arpack-ng-${VERSION}
CONFOPTS="\
- -D CMAKE_INSTALL_LIBDIR=$INSTALL_PATH/lib \
- -D EXAMPLES=OFF \
- -D MPI=ON \
- -D BUILD_SHARED_LIBS=ON"
+ -D CMAKE_INSTALL_LIBDIR=${INSTALL_PATH}/lib \
+ -D EXAMPLES:BOOL=OFF \
+ -D MPI:BOOL=ON \
+ -D BUILD_SHARED_LIBS:BOOL=ON"
-package_specific_register () {
- export ARPACK_DIR=${INSTALL_PATH}
+package_specific_register() {
+ export ARPACK_DIR=${INSTALL_PATH}
}
-package_specific_conf () {
- # Generate configuration file
- CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
- rm -f $CONFIG_FILE
- echo "
+package_specific_conf() {
+ # Generate configuration file
+ CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
+ rm -f $CONFIG_FILE
+ echo "
export ARPACK_DIR=${INSTALL_PATH}
-" >> $CONFIG_FILE
+" >>$CONFIG_FILE
}
-
################################################################################
# Add additional packages, if present
-# arpack
+########################################
+# ARPACK
+if [[ ${PACKAGES_OFF} =~ 'arpack-ng' ]]; then
+ if [ ! -z "${ARPACK_DIR}" ]; then
+ cecho ${INFO} "deal.II: unset ARPACK_DIR due to forced DEAL_II_WITH_ARPACK:BOOL=OFF option"
+ unset ARPACK_DIR
+ fi
+fi
+
if [ ! -z "${ARPACK_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with ARPACK"
# We use a recent enough version of arpack, so PARPACK can be enabled
# even though it is disabled by default, see
# https://github.com/dealii/dealii/blob/master/cmake/modules/FindARPACK.cmake
- CONFOPTS="\
- ${CONFOPTS} \
- -D DEAL_II_WITH_ARPACK:BOOL=ON \
- -D DEAL_II_ARPACK_WITH_PARPACK=ON \
- -D ARPACK_DIR=${ARPACK_DIR}"
+ CONFOPTS="${CONFOPTS} \
+ -D DEAL_II_WITH_ARPACK:BOOL=ON \
+ -D DEAL_II_ARPACK_WITH_PARPACK:BOOL=ON \
+ -D ARPACK_DIR=${ARPACK_DIR}"
fi
# metis