On Wed, Feb 9, 2011 at 13:17, Matthew Knepley
<knepley@gmail.com> wrote:
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?
The result of tests go into petscconf.h. For the example I brought up, different macro values imply that different code must be executed. To remove the #if completely, you would have to generate different imperative code.
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
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
building everything would actually be simpler.