[petsc-dev] Okay, petscmath.h is a complete piece of crap and now its breaking my build
Barry Smith
bsmith at mcs.anl.gov
Tue Mar 15 13:34:30 CDT 2011
I have spent the last 48 hours making petscmath.h MUCH simpiler than it was before. And probably introduced a bug or two into it. But if it was much worse before. There are no 6 deep #ifdef there should be no more than three: complex or not, c or c++ and scalar size
Please send bug reports with all error messages to petsc-maint or petsc-dev
Barry
On Mar 15, 2011, at 1:07 PM, Matthew Knepley wrote:
> This is why I hate the preprocessor. I am wasting time wading through 6-deep #ifs, that
> are not checked by my editor. This is the worst way to do specialized code. The argument
> that we have a single tool (the compiler) right now is very hollow. We should be generating
> this in configure.
>
> Matt
>
> --
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener
More information about the petsc-dev
mailing list