[petsc-dev] CHKERRQ vs PetscCall for Fortran? Which is the future?

Matthew Knepley knepley at gmail.com
Tue Apr 26 17:51:56 CDT 2022

On Tue, Apr 26, 2022 at 6:43 PM Hammond, Glenn E via petsc-dev <
petsc-dev at mcs.anl.gov> wrote:

> PETSc,
> I see that CHKERRQ is back in the Fortran interface after 3.17.1.  Will
> CHKERRQ be removed in the future?  I just wrote a script to refactor
> PFLOTRAN [CHKERRQ() -> PetscCall()], and I want to know which direction to
> head before asking everything to check in all their dev branches.  If
> CHKERRQ() is available with Fortran for the future, I will abandon the
> script and leave the devs alone.

CHKERRQ is deprecated, but removing needlessly breaks code. Changing to
PetscCall is the right move.



> Thanks,
> Glenn

What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20220426/52eb1454/attachment.html>

More information about the petsc-dev mailing list