### DO NOT MODIFY THE CODE BELOW ###
####################################
+ParMETIS=ON
+SuperLUDist=ON
+
#########################################################################
# 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
+ 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 and SuperLU_dist if metis is off.
if [[ ${PACKAGES_OFF} =~ 'METIS' ]]; then
- PACKAGES_OFF=${PACKAGES_OFF}' PARMETIS';
- PACKAGES_OFF=${PACKAGES_OFF}' SUPERLU_DIST';
- ParMetis=OFF
- SuperLUDist=OFF
+ PACKAGES_OFF=${PACKAGES_OFF}' PARMETIS';
+ PACKAGES_OFF=${PACKAGES_OFF}' SUPERLU_DIST';
+ ParMETIS=OFF
+ SuperLUDist=OFF
fi
# Transform upper case to lower case.
-D CMAKE_FORTRAN_FLAGS:STRING=-g -O5 \
-D Trilinos_EXTRA_LINK_FLAGS:STRING=-lgfortran"
+# Add ParMETIS, if present
+if [ ! -z "${ParMETIS}" ] && [ ${ParMETIS} = "ON" ]; then
+ CONFOPTS="\
+ ${CONFOPTS} \
+ -D TPL_ENABLE_ParMETIS:BOOL=${ParMETIS} \
+ -D TPL_ParMETIS_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libparmetis.so"
+fi
+
+# Add SuperLU_dist, if present
+if [ ! -z "${SuperLUDist}" ] && [ ${SuperLUDist} = "ON" ]; then
+ CONFOPTS="\
+ ${CONFOPTS} \
+ -D TPL_ENABLE_SuperLUDist:BOOL=${SuperLUDist} \
+ -D TPL_SuperLUDist_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libsuperlu_dist.so \
+ -D SuperLUDist_INCLUDE_DIRS:PATH=${INSTALL_PATH}/include/superlu \
+ -D HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON"
+fi
+
#########################################################################
# General Trilinos configuration
-D Trilinos_ENABLE_Belos:BOOL=ON \
-D Trilinos_ENABLE_MueLu:BOOL=ON \
-D Trilinos_ENABLE_Amesos2:BOOL=ON \
- -D TPL_ENABLE_ParMETIS:BOOL=${ParMETIS} \
- -D TPL_ParMETIS_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libparmetis.so \
- -D TPL_ENABLE_SuperLUDist:BOOL=${SuperLUDist} \
- -D TPL_SuperLUDist_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libsuperlu_dist.so \
- -D SuperLUDist_INCLUDE_DIRS:PATH=${INSTALL_PATH}/include/superlu \
- -D HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE \
-D Trilinos_VERBOSE_CONFIGURE:BOOL=FALSE \