Chombo + EB  3.2
Public Member Functions | List of all members
NoOpSolver< T > Class Template Reference

#include <NoOpSolver.H>

Inheritance diagram for NoOpSolver< T >:
Inheritance graph
[legend]

Public Member Functions

 NoOpSolver ()
 
virtual ~NoOpSolver ()
 
virtual void setHomogeneous (bool a_homogeneous)
 
virtual void define (LinearOp< T > *a_factory, bool a_homogeneous)
 
virtual void solve (T &a_phi, const T &a_rhs)
 
virtual void setConvergenceMetrics (Real a_metric, Real a_tolerance)
 Set a convergence metric, along with solver tolerance, if desired. More...
 
- Public Member Functions inherited from LinearSolver< T >
virtual ~LinearSolver ()
 

Constructor & Destructor Documentation

◆ NoOpSolver()

template<class T>
NoOpSolver< T >::NoOpSolver ( )
inline

◆ ~NoOpSolver()

template<class T>
virtual NoOpSolver< T >::~NoOpSolver ( )
inlinevirtual

Member Function Documentation

◆ setHomogeneous()

template<class T>
virtual void NoOpSolver< T >::setHomogeneous ( bool  a_homogeneous)
inlinevirtual

reset whether the solver is homogeneous.

Implements LinearSolver< T >.

◆ define()

template<class T>
virtual void NoOpSolver< T >::define ( LinearOp< T > *  a_operator,
bool  a_homogeneous 
)
inlinevirtual

Define the operator and whether it is a homogeneous solver or not. The LinearSolver does not take over ownership of this a_operator object. It does not call delete on it when the LinearSolver is deleted. It is meant to be like a late-binding reference. If you created a_operator with new, you should call delete on it after LinearSolver is deleted if you want to avoid memory leaks.

Implements LinearSolver< T >.

◆ solve()

template<class T>
void NoOpSolver< T >::solve ( T &  a_phi,
const T &  a_rhs 
)
virtual

Solve L(phi) = rhs (phi = L^-1 (rhs)).

Implements LinearSolver< T >.

Referenced by NoOpSolver< LevelData< T > >::define().

◆ setConvergenceMetrics()

template<class T>
virtual void NoOpSolver< T >::setConvergenceMetrics ( Real  a_metric,
Real  a_tolerance 
)
inlinevirtual

Set a convergence metric, along with solver tolerance, if desired.

Default implementation does nothing, since there are probably cases (liked direct solves), where this has no real meaning.

Reimplemented from LinearSolver< T >.


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