diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-05-05 14:34:32 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-05-05 14:34:32 +0000 |
commit | 6e2628dc95c587726cb8543c44c244627b7d553a (patch) | |
tree | 437e3e13f8f6971f4ccd14528595d1adcf49c175 /lib | |
parent | c4087ed94a4cdadd9712ab3ae8fa29e532c65efe (diff) |
Add support for PETSc 2.2.0.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3690 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/make/extras/PETSC/setup.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/make/extras/PETSC/setup.sh b/lib/make/extras/PETSC/setup.sh index 765604da..12f060ee 100755 --- a/lib/make/extras/PETSC/setup.sh +++ b/lib/make/extras/PETSC/setup.sh @@ -65,10 +65,20 @@ else echo " Using PETSc architecture-specific libraries '$PETSC_ARCH_LIBS'" fi + +# Set version-specific libraries +# (version 2.2.0 and newer do not have libpetscsles.a any more) +if [ -e $(PETSC_DIR)/lib/libO/$(PETSC_ARCH)/libpetscksp.a ]; then + PETSC_SLES_LIBS="petscksp" +else + PETSC_SLES_LIBS="petscsles" +fi + + # Set the PETSc libs, libdirs and includedirs PETSC_LIB_DIRS='$(PETSC_DIR)/lib/libO/$(PETSC_ARCH)' PETSC_INC_DIRS='$(PETSC_DIR)/include $(PETSC_DIR)/bmake/$(PETSC_ARCH)' -PETSC_LIBS="petscts petscsnes petscsles petscdm petscmat petscvec petsc $PETSC_ARCH_LIBS" +PETSC_LIBS="petscfortran petscts petscsnes $PETSC_SLES_LIBS petscdm petscmat petscvec petsc $PETSC_ARCH_LIBS" # Write the data out to the header and make files. |