ThunderEgg  1.0.0
ThunderEgg::Iterative::PatchSolver< D > Class Template Reference

Solves the patches using an iterative Solver on each patch. More...

#include <PatchSolver.h>

Inheritance diagram for ThunderEgg::Iterative::PatchSolver< D >:
Collaboration diagram for ThunderEgg::Iterative::PatchSolver< D >:

Public Member Functions

 PatchSolver (const Iterative::Solver< D > &solver, const PatchOperator< D > &op, bool continue_on_breakdown=false)
 Construct a new IterativePatchSolver object. More...
 
PatchSolver< D > * clone () const override
 Clone this patch solver. More...
 
void solveSinglePatch (const PatchInfo< D > &pinfo, const PatchView< const double, D > &f_view, const PatchView< double, D > &u_view) const override
 Perform a single solve over a patch. More...
 
- Public Member Functions inherited from ThunderEgg::PatchSolver< D >
 PatchSolver (const Domain< D > &domain, const GhostFiller< D > &ghost_filler)
 Construct a new PatchSolver object. More...
 
virtual ~PatchSolver ()
 Destroy the Patch Solver object.
 
const Domain< D > & getDomain () const
 Get the Domain object. More...
 
const GhostFiller< D > & getGhostFiller () const
 Get the GhostFiller object. More...
 
virtual void apply (const Vector< D > &f, Vector< D > &u) const override
 Solve all the patches in the domain, assuming zero boundary conditions for the patches. More...
 
virtual void smooth (const Vector< D > &f, Vector< D > &u) const override
 Solve all the patches in the domain, using the values in u for the boundary conditions. More...
 
- Public Member Functions inherited from ThunderEgg::Operator< D >
virtual ~Operator ()
 Destroy the Operator object.
 
- Public Member Functions inherited from ThunderEgg::GMG::Smoother< D >
virtual ~Smoother ()
 Destroy the Smoother object.
 

Detailed Description

template<int D>
class ThunderEgg::Iterative::PatchSolver< D >

Solves the patches using an iterative Solver on each patch.

Template Parameters
Dthe number of cartesian dimensions

Constructor & Destructor Documentation

◆ PatchSolver()

template<int D>
ThunderEgg::Iterative::PatchSolver< D >::PatchSolver ( const Iterative::Solver< D > &  solver,
const PatchOperator< D > &  op,
bool  continue_on_breakdown = false 
)
inline

Construct a new IterativePatchSolver object.

Parameters
tol_inthe tolerance to use for patch solves
max_it_inthe maximum number of iterations to use for patch solves

Construct a new Patch Solver object

Parameters
solverthe solver to use
opthe PatchOperator to use
continue_on_breakdowncontinue on breakdown exception

Member Function Documentation

◆ clone()

template<int D>
PatchSolver<D>* ThunderEgg::Iterative::PatchSolver< D >::clone ( ) const
inlineoverridevirtual

Clone this patch solver.

Returns
PatchSolver<D>* a newly allocated copy of this patch solver

Implements ThunderEgg::PatchSolver< D >.

◆ solveSinglePatch()

template<int D>
void ThunderEgg::Iterative::PatchSolver< D >::solveSinglePatch ( const PatchInfo< D > &  pinfo,
const PatchView< const double, D > &  f_view,
const PatchView< double, D > &  u_view 
) const
inlineoverridevirtual

Perform a single solve over a patch.

Parameters
pinfothe PatchInfo for the patch
f_viewthe left hand side
u_viewthe right hand side

Implements ThunderEgg::PatchSolver< D >.


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