<div class="gmail_quote">On Fri, May 13, 2011 at 15:16, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Why? Since we have complete control of the process why put in ugly #ifdef logic? Just put the information into different files.  Use of CPP is an admission that you haven't found a better way to do it :-)</blockquote>
</div><div><br></div>I think that doing any one thing at compile time is pretty much admission of the same. But once you decide to make the choice at compile time, I don't see how a combinatorial number of generated files is clearly better. Matt would have us move all of PETSc into BuildSystem and generate a header that did everything. ;-)<div>
<br></div><div>For C versus C++, I don't really care. Ideally it is not necessary to have separate headers or #ifdef in there.</div>