<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 24, 2017 at 8:50 AM, John Chludzinski <span dir="ltr"><<a href="mailto:jchludzinski@gmail.com" target="_blank">jchludzinski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Considering that the current C++ standard is >1600 pages and counting (still glomming on new "features"), I'm planning to try an OO style of C coding style.<div><br></div><div><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:13px">The standard's size (number of pages) being the best (and only <b>practical</b>) means to measure language complexity.</span></div></div></blockquote><div><br></div><div>Here is another thing I wrote talking about OO in PETSc:</div><div><br></div><div> <a href="https://arxiv.org/abs/1209.1711">https://arxiv.org/abs/1209.1711</a></div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 24, 2017 at 9:11 AM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Wed, May 24, 2017 at 8:03 AM, John Chludzinski <span dir="ltr"><<a href="mailto:jchludzinski@gmail.com" target="_blank">jchludzinski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Is there a guide for how to write/develop PETSC OO C code? How a "class" is defined/implemented? How you implement inheritance? Memory management? Etc?</div></blockquote><div><br></div></span><div>We have a guide: <a href="http://www.mcs.anl.gov/petsc/developers/developers.pdf" target="_blank">http://www.mcs.anl.gov/<wbr>petsc/developers/developers.pd<wbr>f</a></div><div><br></div><div>If its not in there, you can mail the list.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail-m_5148246229670435008m_3396233918799392425gmail-HOEnZb"><font color="#888888"><div>---John</div></font></span></div><span class="gmail-m_5148246229670435008HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="gmail-m_5148246229670435008HOEnZb"><font color="#888888"><br><br clear="all"><span class="gmail-HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="gmail-m_5148246229670435008m_3396233918799392425gmail_signature"><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">http://www.caam.rice.edu/~mk51<wbr>/</a><br></div></div></div>
</font></span></font></span></div></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">http://www.caam.rice.edu/~mk51/</a><br></div></div></div>
</div></div>