> On Apr 26, 2022, at 8:12 PM, Barry Smith <[email protected]> wrote: > > I didn't like PetscCall(ierr) in Fortran because it is strange, even > freakish. PetscCall(AFunction(args)) makes sense in C but IMHO "call > AFunction(args,ierr); PetscCall(ierr)" looks weird, what are you calling? > Nothing. I'd like to keep CHKERRQ(ierr) in Fortran and not support > PetscCall(ierr) in Fortran.
I have to admit that I don’t really understand the C usage either, since unless I am misreading the code, PetscCall in C doesn’t actually “call” the function that is in its arguments, but rather “checks” the called function’s return value. — Boyce
