[petsc-users] error of compiling complex

Satish Balay balay at mcs.anl.gov
Thu May 21 14:30:06 CDT 2020


Something wrong with your build. This source-file should not get compiled for complex.

> ../../../petsc/src/ksp/pc/impls/tfs/ivec.c

And this relative path looks wierd. How are you building PETSc?

Might start with a fresh petsc install. [and look at updating to latest release - petsc-3.13]

And send complete build logs - if you still have issues.

Satish

On Thu, 21 May 2020, Sam Guo 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.
> 
> Thanks,
> Sam
> 


More information about the petsc-users mailing list