[Getdp] Petsc-3.0.0

Mark van Doesburg mark.van.doesburg at technolution.nl
Tue Jan 27 09:38:45 CET 2009


Hello,

I've used the attached patch to compile getdp using petsc-3.0.0.

regards, 

Mark van Doesburg


--- getdp-2.0.0-cvs-20090125/configure.in	2009-01-24 00:02:29.000000000 +0100
+++ test/getdp-2.0.0-cvs-20090125/configure.in	2009-01-26 23:09:31.194490395 +0100
@@ -137,10 +137,16 @@
     AC_MSG_ERROR([Could not determine PETSC_ARCH. Run configure again with --with-petsc-arch.])
   fi
   AC_CHECK_FILE(${PETSC_DIR}/bmake/${PETSC_ARCH}/petscconf.h,PETSC="yes",PETSC="no")
-  if test "x${PETSC}" = "xno"; then
-    AC_MSG_ERROR([Could not find PETSC. Use --enable-sparskit instead?])
+  if test "x${PETSC}" = "xyes"; then
+    PETSC_INCLUDE_MAKEFILE='include ${PETSC_DIR}/bmake/common/variables'
+  else
+    AC_CHECK_FILE(${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h,PETSC="yes",PETSC="no")
+    if test "x${PETSC}" = "xyes"; then
+      PETSC_INCLUDE_MAKEFILE='include ${PETSC_DIR}/conf/variables'
+    else
+      AC_MSG_ERROR([Could not find PETSC. Use --enable-sparskit instead?])
+    fi
   fi
-  PETSC_INCLUDE_MAKEFILE='include ${PETSC_DIR}/bmake/common/variables'
   LAPACK="yes"
   LINKER="\${CLINKER}"
   FLAGS="${FLAGS} -DHAVE_PETSC \${PETSCFLAGS} \${PETSC_INCLUDE}"