From: Bruno Turcksin Date: Mon, 5 Oct 2015 23:28:06 +0000 (-0500) Subject: Make platform linux_cluster more robust and warn that BLAS_DIR and LAPACK_DIR need... X-Git-Tag: v0.7~21^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3cc8b7a3e645915f3984bcdb3fab529f2965760;p=candi.git Make platform linux_cluster more robust and warn that BLAS_DIR and LAPACK_DIR need to be set to use Trilinos. --- diff --git a/candi.sh b/candi.sh index 7751fc4..45a6391 100755 --- a/candi.sh +++ b/candi.sh @@ -539,8 +539,21 @@ if [ $# -eq 0 ]; then cecho ${GOOD} "Once ready, hit enter to continue!" read elif [ $# -eq 1 ]; then - PLATFORM=${1} - cecho ${GOOD} "Building ${PROJECT} using ${PLATFORM}." + PLATFORM_SUPPORTED=${1} + if [ -e ${PLATFORM_SUPPORTED} ]; then + PLATFORM=${PLATFORM_SUPPORTED} + cecho ${GOOD} "Building ${PROJECT} using ${PLATFORM}." + if [ "${PLATFORM}" = "deal.II/platforms/supported/linux_cluster.platform" ]; then + cecho ${WARN} "BLAS_DIR and LAPACK_DIR need to be set in the configuration file" + cecho ${WARN} "if you want to use Trilinos." + fi + else + cecho ${BAD} "Error: Platform to build for not supported." + echo "If you know the platform you are interested in (myplatform), please specify it directly, as:" + echo "./candi.sh ${PROJECT}/platforms/supported/myplatform.platform" + echo "If you'd like to learn more, refer to the file USAGE for detailed usage instructions." + exit 1 + fi echo "-------------------------------------------------------------------------------" # Show the initial comments in the platform file, as it often