PLogEventEnd

Log the end of a user event.

Input Parameters

e -integer associated with the event obtained with PLogEventRegister()
o1,o2,o3,o4 -objects associated with the event, or 0

Synopsis

void PLogEventEnd(int e,PetscObject o1,PetscObject o2,PetscObject o3,
PetscObject o4)

Notes

You should also register each additional integer event with the commandPLogRegisterEvent(). Source code must be compiled with-DUSE_PETSC_LOG, which is the default.

PETSc automatically logs library events if the code has beencompiled with -DUSE_PETSC_LOG, and -log, -log_summary, or -log_all arespecified. PLogEventEnd() is intended for logging user eventsto supplement this PETSc information.

Example of Usage

    int USER_EVENT;
    int user_event_flops;
    PLogEventRegister(&USER_EVENT,"User event","Color:");
    PLogEventBegin(USER_EVENT,0,0,0,0);
       [code segment to monitor]
       PLogFlops(user_event_flops);
    PLogEventEnd(USER_EVENT,0,0,0,0);

See Also

PLogEventRegister(), PLogEventBegin(), PLogFlops()

Keywords

log, event, end

Examples

src/sles/examples/tutorials/ex9.c
src/sys/examples/tutorials/ex3f.F
src/sys/examples/tutorials/ex3.c

Location: include/petsclog.h
Logging Index
Table of Contents