petsc4py.PETSc.LogStage#

class petsc4py.PETSc.LogStage#

Bases: object

Logging support for different stages.

Methods Summary

activate()

Activate the stage.

deactivate()

Deactivate the stage.

getActive()

Check if the stage is activated.

getName()

Source code at petsc4py/PETSc/Log.pyx:257

getVisible()

Return whether the stage is visible.

pop()

Pop a stage from the logging stack.

push()

Push a stage on the logging stack.

setActive(flag)

Activate or deactivate the current stage.

setVisible(flag)

Set the visibility of the stage.

Attributes Summary

active

id

name

visible

Methods Documentation

activate()#

Activate the stage.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:271

Return type:

None

deactivate()#

Deactivate the stage.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:283

Return type:

None

getActive()#

Check if the stage is activated.

Not collective.

Source code at petsc4py/PETSc/Log.pyx:295

Return type:

bool

getName()#

Source code at petsc4py/PETSc/Log.pyx:257

getVisible()#

Return whether the stage is visible.

Not collective.

Source code at petsc4py/PETSc/Log.pyx:331

Return type:

bool

pop()#

Pop a stage from the logging stack.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:242

Return type:

None

push()#

Push a stage on the logging stack.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:230

Return type:

None

setActive(flag)#

Activate or deactivate the current stage.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:309

Parameters:

flag (bool) –

Return type:

None

setVisible(flag)#

Set the visibility of the stage.

Logically collective.

Parameters:

flag (bool) – True to make the stage visible, False otherwise.

Return type:

None

Source code at petsc4py/PETSc/Log.pyx:345

Attributes Documentation

active#
id#
name#
visible#