diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2009-01-27 18:14:08 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2009-01-27 18:14:08 +0000 |
commit | f37b227a8a432fd66b4c94dd60bbc0017eebbd9d (patch) | |
tree | 03aefe60dad5d1ed0de9e5fe70846c5bc0b688ba | |
parent | efc7a8c42e5e01a9028825da1a7b930b3df8ff66 (diff) |
Handle PETSc installations in /usr, /usr/local, or other standard
directories.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4525 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rwxr-xr-x | lib/make/extras/PETSC/setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/make/extras/PETSC/setup.sh b/lib/make/extras/PETSC/setup.sh index 005e8857..0af87656 100755 --- a/lib/make/extras/PETSC/setup.sh +++ b/lib/make/extras/PETSC/setup.sh @@ -78,7 +78,7 @@ fi # Set version-specific libraries # (version 2.2.0 and newer do not have libpetscsles.a any more) -if [ -e "$PETSC_DIR/lib$PETSC_LIB_INFIX/$PETSC_ARCH/libpetscksp.a" ]; then +if [ -e "$PETSC_DIR/lib$PETSC_LIB_INFIX/$PETSC_ARCH/libpetscksp.a" -o -e "$PETSC_DIR/lib/libpetscksp.a" ]; then PETSC_SLES_LIBS="petscksp" else PETSC_SLES_LIBS="petscsles" |