[petsc-users] error of compiling complex
Matthew Knepley
knepley at gmail.com
Thu May 21 14:30:54 CDT 2020
On Thu, May 21, 2020 at 3:25 PM Sam Guo <sam.guo at cd-adapco.com> wrote:
> Dear PETSc dev team,
> I got following error of compiling complex:
> ../../../petsc/src/ksp/pc/impls/tfs/ivec.c: In function ‘PCTFS_rvec_max’:
> ../../../petsc/include/petscmath.h:532:30: error: invalid operands to
> binary < (have ‘PetscScalar’ {aka ‘_Complex double’} and ‘PetscScalar’ {aka
> ‘_Complex double’})
> 532 | #define PetscMax(a,b) (((a)<(b)) ? (b) : (a))
>
> Any idea what I did wrong? I am using version 3.11.3.
>
Can you upgrade to 3.13?
Thanks,
Matt
> Thanks,
> Sam
>
--
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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200521/58c398f2/attachment.html>
More information about the petsc-users
mailing list