#include "petscsys.h" PetscErrorCode PetscLogEventSetError(PetscLogEvent event, PetscInt n, PetscLogDouble error)
Note: This is to enable logging of convergence, and enable users to interpret the errors as they wish. For example, as different norms, or as errors for different fields