<div dir="ltr"><div>Yes, *every* Dune executable must do so in order to have the preprocessor defines gathered by the buildsystem.<br><br></div>Dominic<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 17, 2017 at 12:31 PM, Benedikt Oswald <span dir="ltr"><<a href="mailto:benedikt.oswald@lspr.swiss" target="_blank">benedikt.oswald@lspr.swiss</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hello, thanks, I use<br>
<br>
##############################<wbr>##<br>
# Add MPI and ParMETIS #<br>
##############################<wbr>##<br>
if(HAVE_MPI)<br>
add_dune_mpi_flags(<<wbr>executable-target>)<br>
add_dune_parmetis_flags(<<wbr>executable-target>)<br>
endif(HAVE_MPI)<br>
<br>
<br>
I assume I also must include config.h ?<br>
<br>
<br>
greetings, Benedikt<br>
<br>
<br>
<br>
Am 17.05.17 um 12:14 schrieb Benedikt Oswald:<br>
<div class="HOEnZb"><div class="h5">> Dear Dune,<br>
><br>
> I understand that HAVE_MPI needs to be defined so that the MPI helper<br>
> can deliver a real MPI communicator object.<br>
><br>
> While using the usual DUNE macros for configuring a project, I get confg.h:<br>
><br>
><br>
> /* Define if you have the MPI library. */<br>
> #define HAVE_MPI ENABLE_MPI<br>
><br>
><br>
> However, when compiling my code with mpicxx (dunecontrol reports finding<br>
> them)<br>
> I obviously get an error that says that there is no MPI communicator<br>
> defined.<br>
><br>
> The code only compiles if I manually add -DHAVE_MPI<br>
><br>
> In another Dune based project, this is not the case...I obvious make a<br>
> stupid<br>
> mistake somewhere, but am at a loss at the cause of the problem.<br>
><br>
> Would you have a suggestion ?<br>
><br>
> thanks & greetings, Benedikt<br>
><br>
><br>
><br>
<br>
<br>
</div></div><br>______________________________<wbr>_________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" rel="noreferrer" target="_blank">http://lists.dune-project.org/<wbr>mailman/listinfo/dune</a><br>
<br></blockquote></div><br></div>