[petsc-users] error of compiling complex

Sam Guo sam.guo at cd-adapco.com
Thu May 21 14:24:33 CDT 2020


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.

Thanks,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200521/e7f3df17/attachment.html>


More information about the petsc-users mailing list