]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: slepc: check if PETSC_DIR is present
authorUwe Köcher <koecher@hsu-hamburg.de>
Tue, 10 Nov 2015 19:02:53 +0000 (20:02 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Tue, 10 Nov 2015 19:02:53 +0000 (20:02 +0100)
deal.II-toolchain/packages/slepc.package

index 52225279b40070362f40776554958ea82bca688c..f469b650a8baf9cd919246eec6b03410a90f77d4 100644 (file)
@@ -7,6 +7,11 @@ BUILDCHAIN=custom
 
 INSTALL_PATH=${INSTALL_PATH}/${NAME}
 
+if [ -z "${PETSC_DIR}" ]; then
+    cecho ${BAD} "slepc: error petsc variable PETSC_DIR not found."
+    exit 1
+fi
+
 package_specific_setup () {
     cd ${BUILDDIR}
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .

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.