#include <petsclog.h> PetscErrorCode PetscLogEventSync(int e,MPI_Comm comm)Collective
e | - integer associated with the event obtained from PetscLogEventRegister() | |
comm | - an MPI communicator |
PetscLogEvent USER_EVENT; PetscLogEventRegister("User event",0,&USER_EVENT); PetscLogEventSync(USER_EVENT,PETSC_COMM_WORLD); PetscLogEventBegin(USER_EVENT,0,0,0,0); [code segment to monitor] PetscLogEventEnd(USER_EVENT,0,0,0,0);