From 6e2628dc95c587726cb8543c44c244627b7d553a Mon Sep 17 00:00:00 2001 From: schnetter Date: Wed, 5 May 2004 14:34:32 +0000 Subject: Add support for PETSc 2.2.0. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3690 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/extras/PETSC/setup.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') 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. -- cgit v1.2.3