void PLogFlops(int f)
PETSc automatically logs library events if the code has beencompiled with -DUSE_PETSC_LOG (which is the default), and -log, -log_summary, or -log_all are specified. PLogFlops() isintended for logging user flops to supplement this PETScinformation.
int USER_EVENT;
PLogEventRegister(&USER_EVENT,"User event","Color:");
PLogEventBegin(USER_EVENT,0,0,0,0);
[code segment to monitor]
PLogFlops(user_flops)
PLogEventEnd(USER_EVENT,0,0,0,0);
Location: include/petsclog.h
Logging Index
Table of Contents