]> https://gitweb.dealii.org/ - candi.git/commitdiff
Make platform linux_cluster more robust and warn that BLAS_DIR and LAPACK_DIR need...
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 5 Oct 2015 23:28:06 +0000 (18:28 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 5 Oct 2015 23:28:06 +0000 (18:28 -0500)
candi.sh

index 7751fc4128a9bab9529390f050cb3539e9523984..45a63916698d44ade3762cbbab098098758ec19e 100755 (executable)
--- 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.