[petsc-dev] PETSC_DESIRE_COMPLEX vs <petsccomplex.h>

Jed Brown jed at jedbrown.org
Mon Jul 28 12:53:46 CDT 2014


Barry Smith <bsmith at mcs.anl.gov> writes:

>   Where petsccomplex.h  simply defines PETSC_DESIRE_COMPLEX?  

I'd rather have it contain the code specific to complex (so no
order-dependence).  When scalar-type=complex, petscmath.h would include
petsccomplex.h.

>    And what happens if petsccomplex.h is included after petscsys.h it will have no affect? Should it generate an error if not defined first?
>
>   So petsccomplex.h in pseudo code would be 
>
>       #if defined(__PETSCMATH_H)
>       #error   must include petsccomplex.h BEFORE other petsc include files
>       #endif
>       #define PETSC_DESIRE_COMPLEX
>
>    Seems reasonable to me.
>
>    Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140728/516fcfe9/attachment.sig>


More information about the petsc-dev mailing list