PetscLogEventGetId

Returns the event id when given the event name.

Synopsis

#include "petscsys.h"   
PetscErrorCode  PetscLogEventGetId(const char name[], PetscLogEvent *event)
Not Collective

Input Parameter

name - The event name

Output Parameter

event - The event, or -1 if no event with that name exists

Level: intermediate

See Also

PetscLogEventBegin(), PetscLogEventEnd(), PetscLogStageGetId()

Location:plog.c