<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
tl;dr: Yes. <br>
<br>
<br>
<br>
Sent with Good (www.good.com)<br>
<strong>
<div><font face="Tahoma" color="#000000" size="2"> </font></div>
</strong>
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> petsc-dev-bounces@mcs.anl.gov on behalf of Jeff Hammond<br>
<b>Sent:</b> Friday, August 26, 2016 10:00:25 PM<br>
<b>To:</b> Barry Smith<br>
<b>Cc:</b> petsc-dev@mcs.anl.gov<br>
<b>Subject:</b> Re: [petsc-dev] Question regarding updating PETSc Fortran examples to embrace post F77 constructs<br>
</font><br>
<div></div>
<div>
<div>If PETSc has symbols greater than 6 characters, it has never been Fortran 77 compliant anyways, so it's a bit strange to ask permission to break it in
<i>another</i> way in the examples. </div>
<div><br>
</div>
<div>Sorry for being a pedant but we've had this debate in the MPI Forum and it is false to conflate punchcard Fortran style with any ISO standard. For example, the subroutine PXERBLA is Fortan 90 by definition, no matter how it is implemented. </div>
<div><br>
</div>
<div><a href="http://www.eah-jena.de/~kleine/history/languages/ansi-x3dot9-1978-Fortran77.pdf">http://www.eah-jena.de/~kleine/history/languages/ansi-x3dot9-1978-Fortran77.pdf</a> (or equivalent) has details.</div>
<div><br>
</div>
<div>On a related note - in case the rabbit hole tempts - MPI nonblocking communication isn't compliant with any version of the spec through Fortran 2008.</div>
<div><br>
</div>
<div>One needs the <span style="">TS 29113 extension to ISO Fortran 2008 to comply rigorously, although we know in practice MPI nonblocking communication works just fine in Fortran because compilers do not avail themselves of every possible optimization allowed
by the standard.</span></div>
<div><br>
</div>
<div>Jeff </div>
<div><br>
</div>
<div>PS To actually answer the question, modern Fortran isn't terrible if used judiciously. People should embrace it when appropriate. <br>
<br>
<div>Sent from my iPhone</div>
</div>
<div><br>
On Aug 26, 2016, at 7:54 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><span></span><br>
<span> PETSc users,</span><br>
<span></span><br>
<span> We've always been very conservative in PETSc to keep almost all our Fortran examples in a format that works with classic FORTRAN 77 constructs: fixed line format, (72 character limit) and no use of ; to separate operations on the same line, etc.
</span><br>
<span></span><br>
<span> Is it time to forgo these constructs and use more modern Fortran conventions in all our examples?</span><br>
<span></span><br>
<span> Any feedback is appreciated</span><br>
<span></span><br>
<span> Barry</span><br>
<span></span><br>
<span>Note: it would continue to be possible to use PETSc in the FORTRAN 77 style, this is just a question about updating the examples.</span><br>
<span></span><br>
<span></span><br>
</div>
</blockquote>
</div>
</body>
</html>