<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I forgot to mention that more details about this error and how to reproduce it are provided on the following <a href="https://bugs.launchpad.net/ubuntu/+source/coinor-ipopt/+bug/1167585">Ubuntu ticket</a>:
<div>Thanks. --Philip</div>
<div>
<div apple-content-edited="true"></div>
<br>
<p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
To reproduce the problem:<br>
wget <a rel="nofollow" href="http://www.coin-or.org/download/source/Ipopt/Ipopt-3.10.2.tgz" style="color: rgb(0, 51, 170); text-decoration: none;">http://<wbr>www.coin-<wbr>or.org/<wbr>download/<wbr>source/<wbr>Ipopt/Ipopt-<wbr>3.10.2.<wbr>tgz</a><br>
tar xzf Ipopt-3.10.2.tgz<br>
cp -r Ipopt-3.<wbr>10.2/Ipopt/<wbr>examples/<wbr>Cpp_example .<br>
cd Cpp_example<br>
#now you have the source code for the example that fails.</p>
<p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
#build it (this works)<br>
g++ *.cpp -DHAVE_CSTDDEF `pkg-config ipopt --cflags` `pkg-config ipopt --libs`</p>
<p id="yui_3_5_1_1_1365777816291_322" style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); position: static; z-index: auto; ">
#run it, this fails<br>
./a.out<br>
[nasa1:489] *** An error occurred in MPI_Comm_rank<br>
[nasa1:489] *** on communicator MPI_COMM_WORLD<br>
[nasa1:489] *** MPI_ERR_COMM: invalid communicator<br>
[nasa1:489] *** MPI_ERRORS_<wbr>ARE_FATAL (your MPI job will now abort)</p>
<p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
I think this is a package issue because the following run properly:<br>
1) IpOpt from source and Mumps from source (with get.Mumps)<br>
2) IpOpt from source and Mumps from the ubuntu package libmumps-dev</p>
<p id="yui_3_5_1_1_1365777816291_312" style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); position: static; z-index: auto; ">
I also want to note that the -DHAVE_CSTDDEF is necessary because the IpSmartPtr.hpp file is patched by this package (I think) incorrectly. HAVE_CSTDDEF is not meant to be exported by being in a header file. It is meant to be defined by the generated config.h
file but that file is not exported. The error you get while compiling without this silly define is<br>
/usr/include/<wbr>coin/IpSmartPtr<wbr>.hpp:18:<wbr>4: error: #error "don't have header file for stddef"<br>
I think the patch to IpSmartPtr should simply add #include <cstddef>. This is ubuntu and we know we have cstddef.</p>
<br>
<br>
<br>
<br>
<div>
<div>On Apr 12, 2013, at 8:54 AM, Philip Du Toit <<a href="mailto:Philip.DuToit@numerica.us">Philip.DuToit@numerica.us</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Everyone,
<div><br>
</div>
<div>Has anyone successfully run Ipopt with the MUMPS solver using the packages provided on Ubuntu?</div>
<div><br>
</div>
<div>I am able to successfully run the Cpp_example.cpp when I compile Ipopt and Mumps from source.</div>
<div>However, when I use the Ipopt and Mumps packages provided by the package manager I get the following runtime error:</div>
<div><br>
</div>
<div><span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">./a.out</span><br style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
<span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">[nasa1:489] *** An error occurred in MPI_Comm_rank</span><br style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
<span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">[nasa1:489] *** on communicator MPI_COMM_WORLD</span><br style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
<span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">[nasa1:489] *** MPI_ERR_COMM: invalid communicator</span><br style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">
<span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">[nasa1:489] *** MPI_ERRORS_</span><wbr style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); "><span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); ">ARE_FATAL
(your MPI job will now abort)</span></div>
<div><span style="color: rgb(51, 51, 51); font-family: 'Ubuntu Mono', monospace; font-size: 12px; line-height: 18px; text-align: left; background-color: rgb(255, 255, 255); "><br>
</span></div>
<div>Does anyone have any hints for using the Ipopt and Mumps packages on Ubuntu?</div>
<div><br>
</div>
<div>Many thanks.</div>
<div><br>
</div>
<div>--Philip</div>
<div><br>
</div>
<div><br>
</div>
<div> </div>
</div>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
http://list.coin-or.org/mailman/listinfo/ipopt<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>