When PETSc is installed into a prefix directory it no longer has a directory 
component for $PETSC_ARCH.  The test for PETSc MPI support didn't allow for 
this case.  The attached patch allows for this, but doesn't allow $PETSC_ARCH 
to be unset.

Erik

P.S.  The other workaround I found was to set PETSC_ARCH="/" ;)
-- 
Erik Zeek                     |  \|/ ____ \|/
SMTS, Org 5444, MS-1153       |  "@'/ .. \`@"
Sandia National Laboratories  |  /_| \__/ |_\
Phone: 505-845-0513           |     \__U_/
Index: m4/petsc.m4
===================================================================
--- m4/petsc.m4 (revision 4088)
+++ m4/petsc.m4 (working copy)
@@ -59,6 +59,8 @@
         PETSC_MPI=`grep MPIEXEC $PETSC_DIR/bmake/$PETSC_ARCH/petscconf | grep 
-v mpiexec.uni` 
       elif (test -r $PETSC_DIR/$PETSC_ARCH/conf/petscvariables) ; then dnl 
3.0.x
         PETSC_MPI=`grep MPIEXEC $PETSC_DIR/$PETSC_ARCH/conf/petscvariables | 
grep -v mpiexec.uni`
+      elif (test -r $PETSC_DIR/conf/petscvariables) ; then dnl 3.0.x
+        PETSC_MPI=`grep MPIEXEC $PETSC_DIR/conf/petscvariables | grep -v 
mpiexec.uni`
       fi                
       if test "x$PETSC_MPI" != x ; then
         AC_DEFINE(HAVE_MPI, 1,
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to