<div class="gmail_quote">On Wed, Feb 9, 2011 at 12:56, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">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 id=":3dv">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>I don't know what examples you are referring to, I started with PETSc in 2004.</div><div><br></div><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 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 complexity.</div>