PetscLogHandlerCreateLegacy#

Create a PetscLogHandler from callbacks matching PETSc’s legacy log handler callbacks

Synopsis#

PetscErrorCode PetscLogHandlerCreateLegacy(MPI_Comm comm, 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), PetscLogHandler *handler)

Collective

Input Parameters#

Output Parameter#

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.

PetscLogLegacyCallbacksBegin(), which calls this function, creates and starts (PetscLogHandlerStart()) a log handler, should be used in almost all cases.

See Also#

Profiling

Level#

developer

Location#

src/sys/logging/handler/impls/legacy/loglegacy.c


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