<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">That’s exactly what I was referring to - in the Fortran binding, this in an IN argument - which in C terms, means that it is const.  Now, as you note, in C it is passed by value, so “const” doesn’t add anything, other than a type qualifier that the compiler can mumble about.  I think that in looking at the language-independent version, the IN was noted, and const was added without thinking it through.<div class=""><br class=""></div><div class="">Bill</div><div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">William Gropp<br class="">Acting Director and Chief Scientist, NCSA<br class="">Director, Parallel Computing Institute<br class="">Thomas M. Siebel Chair in Computer Science<br class="">University of Illinois Urbana-Champaign</div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 7, 2017, at 3:37 PM, Jim Dinan <<a href="mailto:james.dinan@gmail.com" class="">james.dinan@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">I think my confusion is that the level argument is passed by value, so it should make no difference to the application whether it's const or not.  The const qualifier seems to place a limitation on an implementation of this routine, but I'm not sure why.<div class=""><br class=""></div><div class=""> ~Jim.<br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Apr 6, 2017 at 10:48 AM, William Gropp <span dir="ltr" class=""><<a href="mailto:wgropp@illinois.edu" target="_blank" class="">wgropp@illinois.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">There is no rationale, other than that this is an IN argument and hence is unchanged.  Of course, declaring it as const achieves nothing new.  I think it was just a rote application of that rule, to a routine that is rarely used.<div class=""><br class=""></div><div class="">Bill</div><div class=""><br class=""><div class="">
<div style="word-wrap:break-word" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">William Gropp<br class="">Acting Director and Chief Scientist, NCSA<br class="">Director, Parallel Computing Institute<br class="">Thomas M. Siebel Chair in Computer Science<br class="">University of Illinois Urbana-Champaign</div><br class="m_-8941535355292502358Apple-interchange-newline"></div><br class="m_-8941535355292502358Apple-interchange-newline">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Apr 6, 2017, at 9:42 AM, Jim Dinan <<a href="mailto:james.dinan@gmail.com" target="_blank" class="">james.dinan@gmail.com</a>> wrote:</div><br class="m_-8941535355292502358Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class="">Hi All,<div class=""><br class=""></div><div class="">I apologize if this is a dumb question -- what's the rationale for the const qualifier on the level argument to MPI_Pcontrol?</div><div class=""><br class=""></div><div class="">int MPI_Pcontrol(const int level, ...)</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""> ~Jim.</div></div></div></div>
______________________________<wbr class="">_________________<br class="">mpi-forum mailing list<br class=""><a href="mailto:mpi-forum@lists.mpi-forum.org" target="_blank" class="">mpi-forum@lists.mpi-forum.org</a><br class=""><a href="https://lists.mpi-forum.org/mailman/listinfo/mpi-forum" target="_blank" class="">https://lists.mpi-forum.org/<wbr class="">mailman/listinfo/mpi-forum</a></div></blockquote></div><br class=""></div></div><br class="">______________________________<wbr class="">_________________<br class="">
mpi-forum mailing list<br class="">
<a href="mailto:mpi-forum@lists.mpi-forum.org" class="">mpi-forum@lists.mpi-forum.org</a><br class="">
<a href="https://lists.mpi-forum.org/mailman/listinfo/mpi-forum" rel="noreferrer" target="_blank" class="">https://lists.mpi-forum.org/<wbr class="">mailman/listinfo/mpi-forum</a><br class=""></blockquote></div><br class=""></div></div></div>
_______________________________________________<br class="">mpi-forum mailing list<br class=""><a href="mailto:mpi-forum@lists.mpi-forum.org" class="">mpi-forum@lists.mpi-forum.org</a><br class="">https://lists.mpi-forum.org/mailman/listinfo/mpi-forum</div></blockquote></div><br class=""></div></body></html>