MFEM  v4.4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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 955 of file petsc.hpp.

Constructor & Destructor Documentation

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

Definition at line 960 of file petsc.hpp.

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

Definition at line 962 of file petsc.hpp.

Member Function Documentation

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

Monitor the residual vector r.

Definition at line 971 of file petsc.hpp.

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

Monitor the solution vector x.

Definition at line 965 of file petsc.hpp.

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

Generic monitor to take access to the solver.

Definition at line 977 of file petsc.hpp.

Member Data Documentation

bool mfem::PetscSolverMonitor::mon_res

Definition at line 959 of file petsc.hpp.

bool mfem::PetscSolverMonitor::mon_sol

Definition at line 958 of file petsc.hpp.


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