<div class="gmail_quote">On Tue, Mar 15, 2011 at 19:51, 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 class="gmail_quote"><div>Again, I could say exactly the same thing. I can jsut look at the Python and see all possible variants. </div></div></blockquote><div><br></div><div>You have an Emacs mode for "python-generating-C" with context-aware syntax highlighting, auto-completion, debugger support, etc? When PETSc crashes, the stack trace is going to reach back into the Python file that produced the C that caused the problem so we can figure out what's wrong?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">In my scenario, it would have been easy to tell what was going on. Here it was hard.</blockquote></div><br>
<div>Put reconfigure in an "hg update" hook, then you'll never have to worry about having generated files (petscconf.h) inconsistent with the source tree. Better yet, have make/builder run it every time you compile just in case any Python code changed. :-)</div>