On Feb 9, 2009, at 9:18 AM, John Peterson wrote: > Short answer: check out aclocal.m4 around line 869. We just use grep > and sed to figure out what the petsc version is during configure. You > could probably do the same for HYPRE_foo...
I just committed a configure test for Hypre that will define LIBMESH_HAVE_PETSC_HYPRE if petsc was compiled with hypre support. The commit also put the appropriate safeguards around the PCHypreSetType call in petsc_preocnditioner.C. Let me know if something still isn't right. > Long answer: > So, this is a really good question. Right now we just blanket-include > petscconf in our Makefile as you have seen. (As of 3.0.x this changed > again anyway to petscvariables...sigh) This has a couple potential > drawbacks. One is that, if there are any variables set incorrectly in > petscconf, for example $(AR) or some other system thing, we inherit > those errors in our Makefile. The other problem is that we can't do > anything very clever during configure since > petsconf/variables/whatever only comes in at the Makefile stage. Hmm.... my new configure test might not work properly with Petsc 3.0... > Someone with a lot of time could probably write a really good > configure test (backwards compatible of course) which would grab any > and all PETSc variables from the petscconf and related files. This > way we would also not have to hard code the petsc link libraries as is > done at line 488 of Make.common.in... Sounds like a good idea... but who has the time? Derek ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
