On Wed, Feb 9, 2011 at 6:05 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><div class="gmail_quote">On Wed, Feb 9, 2011 at 12:56, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>We used to have everything in the preprocessor, and we could happily edit that and never have to think<div>about Python at all. We abandoned that approach because it was too complicated, prone to break, and</div>
<div>we spent all of our petsc-maint time on it.</div></div></blockquote></div><br></div><div>I don't know what examples you are referring to, I started with PETSc in 2004.</div></blockquote><div><br></div><div>Everything before configure was 'bmake' which was pure preprocessor.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>I don't see a lot of logic currently being done on the Python side and used from C, petscconf.h does not have logic in it. No C source files or function</div>
</blockquote><div><br></div><div>What does this sentence mean? If petscconf.h has no logic, then isn't all the logic on the Python side? Isn't all that logic used from C?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div> bodies are currently generated by Python. It sounds like you want to generated imperative code in Python and call that from C. I think that would add</div></blockquote><div><br></div><div>We can currently control the build to do selective builds, just as we do with #defines right now. I think that removing that code from the tree and</div>
<div>building everything would actually be simpler.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> complexity.</div>
</blockquote></div>-- <br>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<br>