#include "petscsys.h" PetscErrorCode PetscLogStageGetActive(PetscLogStage stage, PetscBool *isActive)