[petsc-dev] PETSC_DESIRE_COMPLEX nonsense
Jed Brown
jedbrown at mcs.anl.gov
Fri Nov 2 23:07:54 CDT 2012
The reason is that Hypre headers are broken if complex.h is included,
therefore we need some hack to prevent it from being visible in that
setting. (The user might have the same problem.)
Oh, are you saying that we should still guard inclusion and definition of
PetscComplex to compilation units defining PETSC_DESIRE_COMPLEX, but define
PETSC_HAVE_COMPLEX regardless? That's fine with me.
With all these complexes running around, what are we going to do about
Matt's psychological condition?
On Fri, Nov 2, 2012 at 10:56 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> Seems unnecessarily convoluted. Why not just have PETSC_HAVE_COMPLEX
> defined if either PETSC_HAVE_CXX_COMPLEX or PETSC_HAVE_C99_COMPLEX is
> defined in petscconf.h
>
> Why restrict knowledge of complex to certain files with #define
> PETSC_DESIRE_COMPLEX at the top?
>
> Barry
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20121102/ba3f7b8f/attachment.html>
More information about the petsc-dev
mailing list