Provide a monitor that petsc can use instead of the default. More...
#include <PetscMonitor.h>
Public Member Functions | |
| PetscMonitor (AMP::AMP_MPI comm) | |
| Default constructor. | |
| ~PetscMonitor () | |
| Empty deconstructor. | |
Static Public Member Functions | |
| static PetscErrorCode | monitorKSP (KSP, PetscInt, PetscReal, void *) |
| Routine to pass to petsc for monitoring KSP. | |
| static PetscErrorCode | monitorSNES (SNES, PetscInt, PetscReal, void *) |
| Routine to pass to petsc for monitoring SNES. | |
| static std::string | removeMonitor (std::string options) |
| Routine to pass to petsc for monitoring KSP delete. | |
Private Member Functions | |
| PetscMonitor () | |
| void | printKSPStatus (KSP ksp, PetscInt iteration, PetscReal L2norm) |
| void | printSNESStatus (SNES snes, PetscInt iteration, PetscReal L2norm) |
Private Attributes | |
| AMP::AMP_MPI | d_comm |
Provide a monitor that petsc can use instead of the default.
This class provides routines for convergenece monitoring. The default convergence monitoring by petsc does not properly cleanup until PetscFinialize and creates problems when used on sub-communicators.
Definition at line 25 of file PetscMonitor.h.
|
explicit |
Default constructor.
This is the default constructor that should be used
| comm | Communicator to use for the monitor |
| AMP::PetscMonitor::~PetscMonitor | ( | ) |
Empty deconstructor.
|
private |
|
static |
Routine to pass to petsc for monitoring KSP.
|
static |
Routine to pass to petsc for monitoring SNES.
|
private |
|
private |
|
static |
Routine to pass to petsc for monitoring KSP delete.
Routine to pass to petsc for monitoring SNES delete
|
private |
Definition at line 56 of file PetscMonitor.h.
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |