PetscStageLogPop#

This function pops a stage from the stack.

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscStageLogPop(PetscStageLog stageLog)

Not Collective

Input Parameter#

  • stageLog - The PetscStageLog

Usage#

If the option -log_view is used to run the program containing the following code, then 2 sets of summary data will be printed during PetscFinalize().

      PetscInitialize(int *argc,char ***args,0,0);
      [stage 0 of code]
      PetscStageLogPush(stageLog,1);
      [stage 1 of code]
      PetscStageLogPop(stageLog);
      PetscBarrier(...);
      [more stage 0 of code]
      PetscFinalize();

Note#

Use PetscStageLogRegister() to register a stage.

See Also#

PetscStageLogPush(), PetscStageLogGetCurrent(), PetscStageLogRegister(), PetscLogGetStageLog()

Level#

developer

Location#

src/sys/logging/utils/stagelog.c


Edit on GitLab

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