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

Monitor that checks whether the residual is zero at a given set of dofs. More...

#include <solvers.hpp>

Inheritance diagram for mfem::ResidualBCMonitor:
[legend]
Collaboration diagram for mfem::ResidualBCMonitor:
[legend]

Public Member Functions

 ResidualBCMonitor (const Array< int > &ess_dofs_list_)
 
void MonitorResidual (int it, double norm, const Vector &r, bool final) override
 Monitor the residual vector r. More...
 
- Public Member Functions inherited from mfem::IterativeSolverMonitor
 IterativeSolverMonitor ()
 
virtual ~IterativeSolverMonitor ()
 
virtual void MonitorSolution (int it, double norm, const Vector &x, bool final)
 Monitor the solution vector x. More...
 
void SetIterativeSolver (const IterativeSolver &solver)
 This method is invoked by IterativeSolver::SetMonitor, informing the monitor which IterativeSolver is using it. More...
 

Protected Attributes

const Array< int > * ess_dofs_list
 Not owned. More...
 
- Protected Attributes inherited from mfem::IterativeSolverMonitor
const class IterativeSolveriter_solver
 The last IterativeSolver to which this monitor was attached. More...
 

Detailed Description

Monitor that checks whether the residual is zero at a given set of dofs.

This monitor is useful for checking if the initial guess, rhs, operator, and preconditioner are properly setup for solving in the subspace with imposed essential boundary conditions.

Definition at line 1053 of file solvers.hpp.

Constructor & Destructor Documentation

◆ ResidualBCMonitor()

mfem::ResidualBCMonitor::ResidualBCMonitor ( const Array< int > &  ess_dofs_list_)
inline

Definition at line 1059 of file solvers.hpp.

Member Function Documentation

◆ MonitorResidual()

void mfem::ResidualBCMonitor::MonitorResidual ( int  it,
double  norm,
const Vector r,
bool  final 
)
overridevirtual

Monitor the residual vector r.

Reimplemented from mfem::IterativeSolverMonitor.

Definition at line 3047 of file solvers.cpp.

Member Data Documentation

◆ ess_dofs_list

const Array<int>* mfem::ResidualBCMonitor::ess_dofs_list
protected

Not owned.

Definition at line 1056 of file solvers.hpp.


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