So long as they mean the same thing I suppose we could

#ifndef HAVE_MPI
#define HAVE_MPI
...

A question, though...  I have not seen this, and I see you are including from the trilinos source directory.  Do you see this if you 'make install' and include from the install dir?

-Ben


----- Original Message -----
From: libmesh-devel-bounces@lists.sourceforge.net <libmesh-devel-bounces@lists.sourceforge.net>
To: libmesh-devel@lists.sourceforge.net <libmesh-devel@lists.sourceforge.net>
Sent: Tue Sep 16 11:45:31 2008
Subject: [Libmesh-devel] HAVE_MPI collisions...

Guys,

I'm working on the Trilinos integration and I've hit a bit of a snag.  
It appears as though Trilinos uses a lot of the same #define's that we 
do... so when I'm compiling against it I get a bunch of:

/Users/gastdr/projects/trilinos-8.0.8/OSX_OPT/packages/aztecoo/src/
AztecOO_config.h:116:1: warning: "HAVE_MPI" redefined
In file included from /Users/gastdr/projects/libmesh_trilinos/include/
utils/o_string_stream.h:28,
                  from /Users/gastdr/projects/libmesh_trilinos/include/
utils/perf_log.h:28,
                  from /Users/gastdr/projects/libmesh_trilinos/include/
base/libmesh.h:32,
                  from /Users/gastdr/projects/libmesh_trilinos/include/
numerics/linear_solver.h:34,
                  from /Users/gastdr/projects/libmesh_trilinos/include/
numerics/trilinos_aztec_linear_solver.h:29,
                  from src/numerics/trilinos_aztec_linear_solver.C:31:
/Users/gastdr/projects/libmesh_trilinos/include/base/libmesh_config.h:
109:1: warning: this is the location of the previous definition


These are just warnings.... and as long as both of our "configures" 
find the same stuff the #defines should be pretty much the same.  But 
what _should_ we do about it?  For now, I've just been ignoring them 
and everything is working well... but for the long term I'd like to 
eliminate these warnings, especially because they happen even in 
optimized mode.

I guess we could change the names of ours to something like 
LIBMESH_HAVE_MPI.... sigh.

Derek

-------------------------------------------------------------------------
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
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel