[Dune] Issue with HAVE_MPI
Andreas Dedner
a.s.dedner at warwick.ac.uk
Wed May 17 12:26:52 CEST 2017
Hi.
Possibly you forgot to add a line like
add_dune_mpi_flags( executable-target )
to your CMakeLists.txt file?
Regards
Andreas
On 17/05/17 11:14, Benedikt Oswald wrote:
> Dear Dune,
>
> I understand that HAVE_MPI needs to be defined so that the MPI helper
> can deliver a real MPI communicator object.
>
> While using the usual DUNE macros for configuring a project, I get confg.h:
>
>
> /* Define if you have the MPI library. */
> #define HAVE_MPI ENABLE_MPI
>
>
> However, when compiling my code with mpicxx (dunecontrol reports finding
> them)
> I obviously get an error that says that there is no MPI communicator
> defined.
>
> The code only compiles if I manually add -DHAVE_MPI
>
> In another Dune based project, this is not the case...I obvious make a
> stupid
> mistake somewhere, but am at a loss at the cause of the problem.
>
> Would you have a suggestion ?
>
> thanks & greetings, Benedikt
>
>
>
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
More information about the Dune
mailing list