[petsc-users] one compilation error in PETSc-dev with enabling GPU and complex number

Jed Brown jedbrown at mcs.anl.gov
Tue Feb 7 15:46:58 CST 2012


On Wed, Feb 8, 2012 at 00:43, Jack Poulson <jack.poulson at gmail.com> wrote:

> Good to know; I didn't know libquadmath provided that. The catch is that
> it does not allow one to easily extend templates that previously handled
> 32-bit and 64-bit base types. On the other hand, a custom complex class
> could easily just call the built-in functions for __complex128 when
> instantiated with a base type of __float128.


It'll work fine with PETSc's typedef of PetscReal and PetscScalar. I never
like that C++ crap anyway. ;-D

(You could template over the real and complex types separately, but I guess
you are assuming a certain syntax for converting between reals and complex.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120208/adf98c14/attachment.htm>


More information about the petsc-users mailing list