[Dune] Issue with HAVE_MPI
Benedikt Oswald
benedikt.oswald at lspr.swiss
Wed May 17 12:31:28 CEST 2017
hello, thanks, I use
################################
# Add MPI and ParMETIS #
################################
if(HAVE_MPI)
add_dune_mpi_flags(<executable-target>)
add_dune_parmetis_flags(<executable-target>)
endif(HAVE_MPI)
I assume I also must include config.h ?
greetings, Benedikt
Am 17.05.17 um 12:14 schrieb Benedikt Oswald:
> 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
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20170517/59479d0d/attachment.sig>
More information about the Dune
mailing list