On Mon, Sep 8, 2008 at 5:05 PM, John Peterson <[EMAIL PROTECTED]> wrote: > > I also remembered that we detect the petsc version during configure > using grep and sed (see aclocal.m4 about line 863). We currently only > substitute these values in Make.common.in, but we could also toss them > into libmesh_config.h as e.g. > > LIBMESH_DETECTED_PETSC_VERSION_MAJOR > LIBMESH_DETECTED_PETSC_VERSION_MINOR > LIBMESH_DETECTED_PETSC_VERSION_SUBMINOR > > or similar. This would allow a simpler definition of the > PETSC_VERSION_LESS_THAN macro, one which wouldn't require #including > any additional petsc headers. That is, it would until the configure > test gets broken ;)
The more I thought about it, the better this idea sounded. PETSc hasn't yet broken their version naming scheme so I feel pretty confident, but I also volunteer to fix this again when they release petsc3 :P Oh also, if you do an SVN update to 3013, you will need to reconfigure and recompile. -- John ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
