[petsc-users] CHKERRQ in PETSc 3.17 Fortran

Satish Balay balay at mcs.anl.gov
Mon Apr 18 15:09:33 CDT 2022

Its deprecated - but the removal in fortran interface was not intentional.
So its added in https://gitlab.com/petsc/petsc/-/commit/1d07488b31e9919329a73f04131a9987c281eb5e and should be in petsc-3.17.1


On Mon, 18 Apr 2022, Albert Mollen via petsc-users wrote:

> Hi,
> Our code uses PETSc in both C++ and Fortran. After updating to using PETSc
> 3.17.0 CHKERRQ is not found when compiling the Fortran part. I see that
> CHKERRQ is now deprecated but is it intentional to remove it?
> I could easily solve it by adding
> #if PETSC_VERSION_GE(3,17,0)
> #define CHKERRQ(...) PetscCall(__VA_ARGS__)
> #endif
> Thanks
> ----------
> Albert Mollén
> Associate Research Physicist
> Theory Department
> Princeton Plasma Physics Laboratory

More information about the petsc-users mailing list