MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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.
 
virtual void MonitorResidual (PetscInt it, PetscReal norm, const Vector &r)
 Monitor the residual vector r.
 
virtual void MonitorSolver (PetscSolver *solver)
 Generic monitor to take access to the solver.
 

Public Attributes

bool mon_sol
 
bool mon_res
 

Detailed Description

Abstract class for monitoring PETSc's solvers.

Definition at line 984 of file petsc.hpp.

Constructor & Destructor Documentation

◆ PetscSolverMonitor()

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

Definition at line 989 of file petsc.hpp.

◆ ~PetscSolverMonitor()

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

Definition at line 991 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 1000 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 994 of file petsc.hpp.

◆ MonitorSolver()

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

Generic monitor to take access to the solver.

Definition at line 1006 of file petsc.hpp.

Member Data Documentation

◆ mon_res

bool mfem::PetscSolverMonitor::mon_res

Definition at line 988 of file petsc.hpp.

◆ mon_sol

bool mfem::PetscSolverMonitor::mon_sol

Definition at line 987 of file petsc.hpp.


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