PetscLogLegacyCallbacksBegin#

Create and start a log handler from callbacks matching the now deprecated function pointers PetscLogPLB, PetscLogPLE, PetscLogPHC, PetscLogPHD.

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscLogLegacyCallbacksBegin(PetscErrorCode (*PetscLogPLB)(PetscLogEvent e, int _i, PetscObject o1, PetscObject o2, PetscObject o3, PetscObject o4), PetscErrorCode (*PetscLogPLE)(PetscLogEvent e, int _i, PetscObject o1, PetscObject o2, PetscObject o3, PetscObject o4), PetscErrorCode (*PetscLogPHC)(PetscObject o), PetscErrorCode (*PetscLogPHD)(PetscObject o))

Logically Collective on PETSC_COMM_WORLD

Input Parameters#

Calling sequence of PetscLogPLB#

Calling sequence of PetscLogPLE#

Calling sequence of PetscLogPHC#

Calling sequence of PetscLogPHD#

Notes#

This is for transitioning from the deprecated function PetscLogSet() and should not be used in new code.

This should help migrate external log handlers to use PetscLogHandler, but callbacks that depend on the deprecated PetscLogStage datatype will have to be updated.

See Also#

Profiling, PetscLogHandler, PetscLogHandlerStart(), PetscLogState

Level#

advanced

Location#

src/sys/logging/plog.c


Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages