"Hammond, Glenn E" <[email protected]> writes: > I target 80 characters (not sure where the 132 characters came from). How > long is the macro in Fortran?
include/finclude/petscsysdef.h:#define CHKERRQ(n) if (n .ne. 0) call MPI_Abort(PETSC_COMM_WORLD,n,n) [Cc: petsc-dev] Since this doesn't provide error tracing, why can't we use the ierr argument to make the wrapper do this abort instead? call PetscFunctionWithSeveralArgs(a,b,c,d,PetscErrAbort) Here, PetscErrAbort would be a special value similar to PETSC_NULL_OBJECT. If the wrapper sees it, the wrapper aborts instead of returning. Thoughts?
pgpJZ6yjBR81A.pgp
Description: PGP signature
