[MOAB-dev] moab/ParallelComm.hpp include order

Vijay S. Mahadevan vijay.m at gmail.com
Mon Nov 2 14:59:56 CST 2015


Nico, can you give an example ? What else did you include before
ParallelComm to get such an error ? I am guessing this has to do with
how moab/MOABConfig.h gets included since that's where MOAB_HAVE_MPI
is defined.

Vijay

On Mon, Nov 2, 2015 at 2:47 PM, Nico Schlömer <nico.schloemer at gmail.com> wrote:
> When playing with MOAB, I found that if I include the header
> ```
> #include <moab/ParallelComm.hpp>
> ```
> after something that's also using MPI, I'm getting strange compilation
> errors of the kind
> ```
> error: ‘MPI_COMM_WORLD’ was not declared in this scope
> ```
> Has anyone else experienced this?
>
> Cheers,
> Nico


More information about the moab-dev mailing list