MFEM  v3.3.2
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...
 

Public Attributes

bool mon_sol
 
bool mon_res
 

Detailed Description

Abstract class for monitoring PETSc's solvers.

Definition at line 659 of file petsc.hpp.

Constructor & Destructor Documentation

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

Definition at line 664 of file petsc.hpp.

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

Definition at line 666 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 675 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 669 of file petsc.hpp.

Member Data Documentation

bool mfem::PetscSolverMonitor::mon_res

Definition at line 663 of file petsc.hpp.

bool mfem::PetscSolverMonitor::mon_sol

Definition at line 662 of file petsc.hpp.


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