yeah,
that was it

    HAVE_MPI_CPP is undefined in mvapich by default

so the MPI_SKIP_MPICXX is unnecessary.


but necessary for MPICH2



df




On Wed, 7 Jan 2009, David Fuentes wrote:

>
> sorry,
>
> maybe it is mvapich vs mpich2
>
> I don't see HAVE_MPI_CPP defined anywhere in the mvapich version.
>
>
>
>
> the $MPI_DIR/include/mpi.h  in mvapich1 has
>
> /* Add the C++ bindings */
> /*
>   If MPICH_SKIP_MPICXX is defined, the mpi++.h file will *not* be included.
>   This is necessary, for example, when building the C++ interfaces.  It
>   can also be used when you want to use a C++ compiler to compile C code,
>   and do not want to load the C++ bindings
> */
> #if defined(HAVE_MPI_CPP) && !defined(MPICH_SKIP_MPICXX)
> #include "mpi++.h"
> #endif
>
>
> the $MPI_DIR/include/mpi.h  in mpich2 has
>
> /* Add the C++ bindings */
> /*
>   If MPICH_SKIP_MPICXX is defined, the mpicxx.h file will *not* be
> included.
>   This is necessary, for example, when building the C++ interfaces.  It
>   can also be used when you want to use a C++ compiler to compile C
> code,
>   and do not want to load the C++ bindings.  These definitions can
>   be made by the C++ compilation script
> */
> #if !defined(MPICH_SKIP_MPICXX)
> /* mpicxx.h contains the MPI C++ binding.  In the mpi.h.in file, this
>   include is in an autoconf variable in case the compiler is a C++
>   compiler but MPI was built without the C++ bindings */
> #include "mpicxx.h"
> #endif
>
>
>
>
>
>
>
>
>
>
> On Wed, 7 Jan 2009, David Fuentes wrote:
>
>> 
>> 
>> seems to be an inconsistency between gcc and intel on this
>> 
>> 
>> gcc seems to need the
>> 
>>> export libmesh_CXXFLAGS=-DMPICH_SKIP_MPICXX
>> 
>> 
>> but intel doesn't
>> ?
>> 
>> 
>> 
>> df
>> 
>> 
>> 
>> 
>> On Wed, 7 Jan 2009, John Peterson wrote:
>> 
>>> On Wed, Jan 7, 2009 at 10:54 AM, David Fuentes <[email protected]> 
>>> wrote:
>>>> 
>>>> I was told that the trunk version of libmesh
>>>> has been upgraded to work with the Cxx version of petsc.
>>>> I am still seeing the "SEEK_SET" error. What compiler version MPI
>>>> version has SEEK_SET been fixed for?
>>> 
>>> Hi David,
>>> 
>>> I think you can avoid this SEEK_SET business by doing
>>> 
>>> export libmesh_CXXFLAGS=-DMPICH_SKIP_MPICXX
>>> 
>>> and then configuring and re-making.
>>> 
>>> 
>>> As for Petsc C++ I'm pretty sure it compiles but I don't know if any
>>> extensive testing was done.  Thanks for volunteering to be a gineau
>>> pig!
>>> 
>>> --
>>> John
>>> 
>> 
>

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to