diff options
Diffstat (limited to 'petsc.sh')
-rwxr-xr-x | petsc.sh | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -51,6 +51,9 @@ choose_petsc=`echo $PETSC | tr '[:upper:]' '[:lower:]'` if [ -z "$PETSC_DIR" ]; then CCTK_Search PETSC_DIR '/usr /usr/local /usr/local/petsc /usr/local/packages/petsc /usr/local/apps/petsc' include/petsc.h if [ -z "$PETSC_DIR" ] ; then + echo "BEGIN MESSAGE" + echo "Unable to locate the PETSC directory, please set PETSC_DIR." + echo "END MESSAGE" exit 2 fi fi @@ -59,6 +62,9 @@ fi # Check what architecture is available if [ -z "$PETSC_ARCH" ]; then if [ ! -d "$PETSC_DIR/lib/libg" ]; then + echo "BEGIN MESSAGE" + echo "Unable to determine arch, please set PETSC_ARCH." + echo "END MESSAGE" exit 2 fi PETSC_ARCH=`/bin/ls -1 $PETSC_DIR/lib/libg | head -n1` @@ -74,8 +80,10 @@ if [ -z "$PETSC_ARCH_LIBS" ]; then linux-gnu) PETSC_ARCH_LIBS='mkl_lapack mkl_def guide' ;; linux64_intel) PETSC_ARCH_LIBS='mkl_lapack mkl guide' ;; rs6000_64) PETSC_ARCH_LIBS='essl' ;; - *) echo " No PETSc support for architecture '$PETSC_ARCH' !" - echo ' Please file a bug report to cactusmaint@cactuscode.org.' + *) echo "BEGIN MESSAGE" + echo "No PETSc support for architecture '$PETSC_ARCH' !" + echo 'Please file a bug report to cactusmaint@cactuscode.org.' + echo "END MESSAGE" exit 2 esac fi |