error: cannot convert ‘int*’ to ‘PetscInt*’
Hello all,
Compiling latest release 3.5.0 with petsc configured with "--with-64-bit-indices", we got these errors that stop the compilation, even with adding the flag "-fpermissive":
/home/henry/projets/getdp-3.5.0-source/src/kernel/EigenSolve_SLEPC.cpp:516:35: error: cannot convert ‘int*’ to ‘PetscInt*’ {aka ‘long int*’} 516 | _try(EPSGetIterationNumber(eps, &its)); | ^~~~ | | | int* In file included from /home/henry/projets/getdp-3.5.0-source/src/kernel/EigenSolve_SLEPC.cpp:48: /home/henry/projets/slepc-3.17.1-int8/include/slepceps.h:252:55: note: initializing argument 2 of ‘PetscErrorCode EPSGetIterationNumber(EPS, PetscInt*)’ 252 | SLEPC_EXTERN PetscErrorCode EPSGetIterationNumber(EPS,PetscInt*);
According to us, it seems that PetscInt needs "long int" but in the source, there is "int".
Thanks in advance for help,
Gérard & Gilles