PetscLogEventSync#
Synchronizes the beginning of a user event.
Synopsis#
#include <petsclog.h>
PetscErrorCode PetscLogEventSync(PetscLogEvent e, MPI_Comm comm)
Collective
Input Parameters#
e -
PetscLogEventobtained fromPetscLogEventRegister()comm - an MPI communicator
Example Usage#
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);
Note#
This routine should be called only if there is not a PetscObject available to pass to
PetscLogEventBegin().
See Also#
Profiling, PetscLogEventRegister(), PetscLogEventBegin(), PetscLogEventEnd()
Level#
developer
Location#
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages