[petsc-users] CHKERRQ in PETSc 3.17 Fortran

Albert Mollen amollen at pppl.gov
Mon Apr 18 15:04:01 CDT 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220418/0a647b42/attachment.html>


More information about the petsc-users mailing list