<div dir="ltr">I'm using 3.11.8 but the problem persists unless you build with <span style="font-family:arial,sans-serif;font-size:13px">-DHAVE_MPI_INITIALIZED.</span></div><div class="gmail_extra"><br clear="all"><div>
Dominique</div>
<br><br><div class="gmail_quote">On Wed, Jul 9, 2014 at 6:29 PM, Paulo César Pereira de Andrade <span dir="ltr"><<a href="mailto:paulo.cesar.pereira.de.andrade@gmail.com" target="_blank">paulo.cesar.pereira.de.andrade@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2014-07-09 17:37 GMT-03:00 Dominique Orban <<a href="mailto:dominique.orban@gmail.com">dominique.orban@gmail.com</a>>:<br>
<br>
Hi,<br>
<br>
> In Homebrew, we compile IPOPT with -DHAVE_MPI_INITIALIZED to get around<br>
> this. See<br>
> <a href="https://github.com/Homebrew/homebrew-science/blob/master/ipopt.rb#L36" target="_blank">https://github.com/Homebrew/homebrew-science/blob/master/ipopt.rb#L36</a> and<br>
> recent discussions on the IPOPT mailing list.<br>
<br>
Many thanks! I was indeed trying to fix the package and did not<br>
notice that the latest release already have the solution for the problem.<br>
<br>
> Dominique<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
> On Wed, Jul 9, 2014 at 3:45 PM, Paulo César Pereira de Andrade<br>
> <<a href="mailto:paulo.cesar.pereira.de.andrade@gmail.com">paulo.cesar.pereira.de.andrade@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> The Ipopt MUMPS interface calls MPI_Init in the class constructor<br>
>> and MPI_Finalize in the destructor. But openmpi causes a fatal<br>
>> error due to it:<br>
>> --------------------------------------------------------------------------<br>
>> Calling MPI_Init or MPI_Init_thread twice is erroneous.<br>
>> --------------------------------------------------------------------------<br>
>><br>
>> Debian uses this patch for Ipopt:<br>
>><br>
>><br>
>> <a href="http://sources.debian.net/src/coinor-ipopt/3.11.7-2/debian/patches/mpi-init.patch" target="_blank">http://sources.debian.net/src/coinor-ipopt/3.11.7-2/debian/patches/mpi-init.patch</a><br>
>><br>
>> But "only" that patch causes the Ipopt testsuite to fail due to calling<br>
>> MPI functions before MPI_Init.<br>
>><br>
>> What is the proper way to handle it? I believe it should be<br>
>> somewhat like only call MPI_Init and MPI_Finalize from the<br>
>> test suite main function, but I have few knowledge of all<br>
>> details (e.g. maybe only required if linking Ipopt to a parallel<br>
>> MUMPS) ...<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">Paulo<br>
</font></span></blockquote></div><br></div>