[petsc-users] petsc-3.2-p5 compile error on AIX/xlc++ with clanguage=cxx

Gong Ding gdiso at ustc.edu
Sun Nov 20 23:07:16 CST 2011


mpCC_r -q64 -o fp.o -c -qrtti=dyna -O -+  -qpic    -I/gpfs1/cogenda/cogenda/packages/petsc/include -I/gpfs1/cogenda/cogenda/packages/petsc/IBM-XLCPP/include  -I/usr/lpp/ppe.poe/include    -D__INSDIR__=src/sys/error/fp.c
"fp.c", line 283.112: 1540-0256 (S) A parameter of type "PetscErrorType" cannot be initialized with an expression of type "int".
"fp.c", line 283.112: 1540-1205 (I) The error occurred while converting to parameter 7 of "PetscError(MPI_Comm, int, const char *, const char *, const char *, PetscErrorCode, PetscErrorType, const char *, ...)".


It seems line 283
 ierr = PetscError(PETSC_COMM_SELF,0,"User provided function","Unknown file","Unknown directory",PETSC_ERR_FP,1,"floating point error"); 
should be changed to
 ierr = PetscError(PETSC_COMM_SELF,0,"User provided function","Unknown file","Unknown directory",PETSC_ERR_FP,PETSC_ERROR_REPEAT,"floating point error");

 


More information about the petsc-users mailing list