-D TRILINOS_DIR=${TRILINOS_DIR}"
fi
-# petsc
+########################################
+# PETSC
if [[ ${PACKAGES_OFF} =~ 'petsc' ]]; then
- # Disable petsc for deal.II, if a special DEAL_II_CONFOPTS together with
- # the dealii-prepare loop forces petsc to be off
if [ ! -z "${PETSC_DIR}" ]; then
cecho ${INFO} "deal.II: unset PETSC_DIR due to forced DEAL_II_WITH_PETSC:BOOL=OFF option"
unset PETSC_DIR
if [ ! -z "${PETSC_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with PETSC"
- CONFOPTS="\
- ${CONFOPTS} \
- -D DEAL_II_WITH_PETSC:BOOL=ON \
- -D PETSC_DIR=${PETSC_DIR}"
+ CONFOPTS="${CONFOPTS} \
+ -D DEAL_II_WITH_PETSC:BOOL=ON \
+ -D PETSC_DIR=${PETSC_DIR}"
fi
-# slepc
+########################################
+# SLEPC
if [[ ${PACKAGES_OFF} =~ 'slepc' ]]; then
- # Disable slepc for deal.II, if a special DEAL_II_CONFOPTS together with
- # the dealii-prepare loop forces slepc to be off
if [ ! -z "${SLEPC_DIR}" ]; then
cecho ${INFO} "deal.II: unset SLEPC_DIR due to forced DEAL_II_WITH_SLEPC:BOOL=OFF option"
unset SLEPC_DIR
if [ ! -z "${SLEPC_DIR}" ]; then
cecho ${INFO} "deal.II: configuration with SLEPC"
- CONFOPTS="\
- ${CONFOPTS} \
- -D DEAL_II_WITH_SLEPC:BOOL=ON \
- -D SLEPC_DIR=${SLEPC_DIR}"
+ CONFOPTS="${CONFOPTS} \
+ -D DEAL_II_WITH_SLEPC:BOOL=ON \
+ -D SLEPC_DIR=${SLEPC_DIR}"
fi
########################################
+################################################################################
+## PETSc ##
+################################################################################
+
VERSION=3.16.4
CHECKSUM=7de82ee5543cba9a7c12ca00c81f0b87
INSTALL_PATH=${INSTALL_PATH}/${EXTRACTSTO}
-#########################################################################
+################################################################################
-CONFOPTS="
- --with-debugging=0
- --with-shared-libraries=1
- --with-mpi=1
- --with-x=0
- --with-64-bit-indices=0
-"
+CONFOPTS="\
+ --with-debugging=0 \
+ --with-shared-libraries=1 \
+ --with-mpi=1 \
+ --with-x=0 \
+ --with-64-bit-indices=0"
if [ ${NATIVE_OPTIMIZATIONS} = ON ]; then
CONFOPTS="${CONFOPTS} \
FOPTFLAGS='-O3 -march=native -mtune=native'"
fi
-
for external_pkg in hypre; do
CONFOPTS="${CONFOPTS} --download-${external_pkg}=1"
done
# Add ParMETIS, if present
if [ ! -z "${PARMETIS_DIR}" ]; then
cecho ${INFO} "PETSc: configuration with ParMETIS"
- CONFOPTS="\
- ${CONFOPTS} \
- --with-parmetis-dir=${PARMETIS_DIR} \
- --with-metis-dir=${PARMETIS_DIR}"
+ CONFOPTS="${CONFOPTS} \
+ --with-parmetis-dir=${PARMETIS_DIR} \
+ --with-metis-dir=${PARMETIS_DIR}"
fi
if [ ! -z "${SCALAPACK_DIR}" ]; then
cecho ${INFO} "PETSc: configuration with SCALAPACK"
- CONFOPTS="\
- ${CONFOPTS} \
- --with-scalapack-dir=${SCALAPACK_DIR}"
+ CONFOPTS="${CONFOPTS} \
+ --with-scalapack-dir=${SCALAPACK_DIR}"
else
CONFOPTS="${CONFOPTS} --download-scalapack=1"
fi
if [ ! -z "${MUMPS_DIR}" ]; then
cecho ${INFO} "PETSc: configuration with MUMPS"
CONFOPTS="${CONFOPTS} \
- --with-mumps-dir=${MUMPS_DIR}"
+ --with-mumps-dir=${MUMPS_DIR}"
else
CONFOPTS="${CONFOPTS} --download-mumps=1"
fi
-#########################################################################
+################################################################################
package_specific_setup () {
cd ${BUILDDIR}
package_specific_conf () {
# Generate configuration file
CONFIG_FILE=${CONFIGURATION_PATH}/${EXTRACTSTO}
- rm -f $CONFIG_FILE
+ rm -f ${CONFIG_FILE}
echo "
export PETSC_DIR=${INSTALL_PATH}
-" >> $CONFIG_FILE
+" >> ${CONFIG_FILE}
if [ ! -z "${SCALAPACK_DIR}" ]; then
- echo "export SCALAPACK_DIR=${INSTALL_PATH}" >> $CONFIG_FILE
+ echo "export SCALAPACK_DIR=${INSTALL_PATH}" >> ${CONFIG_FILE}
fi
}
+################################################################################
+## SLEPc ##
+################################################################################
+
VERSION=3.16.2
CHECKSUM=673dbda220e5a4bd2c3a6618267d8e55
INSTALL_PATH=${INSTALL_PATH}/${NAME}
-##############################################################################
+################################################################################
if [ -z "${PETSC_DIR}" ]; then
cecho ${BAD} "slepc: error petsc variable PETSC_DIR not found."
package_specific_setup () {
cd ${BUILDDIR}
cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
-
+
# make sure no other invalid SLEPC_DIR is set:
unset SLEPC_DIR
${PYTHON_INTERPRETER} ./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
quit_if_fail "slepc ./configure failed"
-
+
make SLEPC_DIR=$PWD PETSC_DIR=${PETSC_DIR} all install
quit_if_fail "slepc make all install failed"
}
package_specific_conf () {
# Generate configuration file
CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
- rm -f $CONFIG_FILE
+ rm -f ${CONFIG_FILE}
echo "
export SLEPC_DIR=${INSTALL_PATH}
-" >> $CONFIG_FILE
+" >> ${CONFIG_FILE}
}