MFEM  v4.6.0
Finite element discretization library
Public Member Functions | Public Attributes | List of all members
mfem::PetscSolverMonitor Class Reference

Abstract class for monitoring PETSc's solvers. More...

#include <petsc.hpp>

Inheritance diagram for mfem::PetscSolverMonitor:
[legend]

Public Member Functions

 PetscSolverMonitor (bool monitor_sol=false, bool monitor_res=true)
 
virtual ~PetscSolverMonitor ()
 
virtual void MonitorSolution (PetscInt it, PetscReal norm, const Vector &x)
 Monitor the solution vector x. More...
 
virtual void MonitorResidual (PetscInt it, PetscReal norm, const Vector &r)
 Monitor the residual vector r. More...
 
virtual void MonitorSolver (PetscSolver *solver)
 Generic monitor to take access to the solver. More...
 

Public Attributes

bool mon_sol
 
bool mon_res
 

Detailed Description

Abstract class for monitoring PETSc's solvers.

Definition at line 981 of file petsc.hpp.

Constructor & Destructor Documentation

◆ PetscSolverMonitor()

mfem::PetscSolverMonitor::PetscSolverMonitor ( bool  monitor_sol = false,
bool  monitor_res = true 
)
inline

Definition at line 986 of file petsc.hpp.

◆ ~PetscSolverMonitor()

virtual mfem::PetscSolverMonitor::~PetscSolverMonitor ( )
inlinevirtual

Definition at line 988 of file petsc.hpp.

Member Function Documentation

◆ MonitorResidual()

virtual void mfem::PetscSolverMonitor::MonitorResidual ( PetscInt  it,
PetscReal  norm,
const Vector r 
)
inlinevirtual

Monitor the residual vector r.

Definition at line 997 of file petsc.hpp.

◆ MonitorSolution()

virtual void mfem::PetscSolverMonitor::MonitorSolution ( PetscInt  it,
PetscReal  norm,
const Vector x 
)
inlinevirtual

Monitor the solution vector x.

Definition at line 991 of file petsc.hpp.

◆ MonitorSolver()

virtual void mfem::PetscSolverMonitor::MonitorSolver ( PetscSolver solver)
inlinevirtual

Generic monitor to take access to the solver.

Definition at line 1003 of file petsc.hpp.

Member Data Documentation

◆ mon_res

bool mfem::PetscSolverMonitor::mon_res

Definition at line 985 of file petsc.hpp.

◆ mon_sol

bool mfem::PetscSolverMonitor::mon_sol

Definition at line 984 of file petsc.hpp.


The documentation for this class was generated from the following file: