# Transform upper case to lower case.
PACKAGES_OFF=${PACKAGES_OFF,,}
-#########################################################################
-TRILINOS_CONFOPTS=" \
--D BLAS_LIBRARY_DIRS:STRING=${BLAS_DIR} \
--D LAPACK_LIBRARY_DIRS:STRING=${LAPACK_DIR} \
-"
-
-if [[ ${MKL} == ON ]]; then
- TRILINOS_CONFOPTS=" \
- ${TRILINOS_CONFOPTS} \
- -D BLAS_LIBRARY_NAMES:STRING='mkl_core;mkl_sequential' \
- -D LAPACK_LIBRARY_NAMES:STRING=mkl_intel_lp64 \
- "
-fi
-
PACKAGE=dealii-prepare
+
#CHECKSUM=ignore
BUILDCHAIN=custom
+#########################################################################
+
CONFOPTS="
--with-debugging=0
--with-shared-libraries=1
CONFOPTS="${CONFOPTS} F90=$F90"
fi
+if [ ! -z "${MKL_DIR}"]
+ CONFOPTS="${CONFOPTS} --with-blas-lapack-dir=${MKL_DIR}"
+fi
+
+#########################################################################
+
package_specific_setup () {
cd ${BUILDDIR}
cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
package_specific_register () {
export PETSC_DIR=${INSTALL_PATH}/${NAME}
}
+
CHECKSUM=760f14cbce482b4b9a41d1c18297b531
BUILDCHAIN=cmake
+#########################################################################
+
+if [ ! -z "${BLAS_DIR}" ]; then
+ TRILINOS_CONFOPTS="${TRILINOS_CONFOPTS} \
+ -D BLAS_LIBRARY_DIRS:STRING=${BLAS_DIR} \
+ "
+fi
+
+if [ ! -z "${LAPACK_DIR}" ]; then
+ TRILINOS_CONFOPTS="${TRILINOS_CONFOPTS} \
+ -D LAPACK_LIBRARY_DIRS:STRING=${LAPACK_DIR} \
+ "
+fi
+
+if [ ${MKL} = "ON" ]; then
+ TRILINOS_CONFOPTS=" \
+ ${TRILINOS_CONFOPTS} \
+ -D BLAS_LIBRARY_NAMES:STRING='mkl_core;mkl_sequential' \
+ -D LAPACK_LIBRARY_NAMES:STRING=mkl_intel_lp64 \
+ "
+fi
+
+#########################################################################
+
CONFOPTS="${TRILINOS_CONFOPTS} \
-D Trilinos_ENABLE_OpenMP:BOOL=OFF \
-D TPL_ENABLE_TBB:BOOL=OFF \
# Do you want to use MKL?
MKL=OFF
+# MKL_DIR=
# BLAS_DIR=
# LAPACK_DIR=