MFEM  v4.2.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 832 of file petsc.hpp.

Constructor & Destructor Documentation

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

Definition at line 837 of file petsc.hpp.

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

Definition at line 839 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 848 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 842 of file petsc.hpp.

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

Generic monitor to take access to the solver.

Definition at line 854 of file petsc.hpp.

Member Data Documentation

bool mfem::PetscSolverMonitor::mon_res

Definition at line 836 of file petsc.hpp.

bool mfem::PetscSolverMonitor::mon_sol

Definition at line 835 of file petsc.hpp.


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