| 
    Chombo + EB
    3.2
    
   | 
 
#include <FASMultiGrid.H>

Public Member Functions | |
| FASMultiGrid () | |
| virtual | ~FASMultiGrid () | 
| virtual void | define (MGLevelOpFactory< T > &a_factory, LinearSolver< T > *a_bottomSolver, const ProblemDomain &a_domain, int a_maxDepth=-1, MGLevelOp< T > *a_finestLevelOp=NULL) | 
| Function to define a FASMultiGrid object.  More... | |
| virtual void | solve (T &a_phi, const T &a_rhs, Real a_tolerance, int a_maxIterations, int verbosity=0) | 
| virtual void | oneCycle (T &a_e, const T &a_res) | 
| Execute ONE v-cycle of multigrid.  More... | |
| void | oneCycle (T &a_e, const T &a_res, T *a_phiCoarse) | 
| virtual void | cycle (int a_depth, T &a_correction, const T &a_residual) | 
  Public Member Functions inherited from MultiGrid< T > | |
| MultiGrid () | |
| virtual | ~MultiGrid () | 
| void | init (const T &a_correction, const T &a_residual) | 
| void | cycle (int a_depth, T &a_correction, const T &a_residual) | 
| void | clear () | 
| void | setBottomSolver (LinearSolver< T > *a_bottomSolver) | 
| Vector< MGLevelOp< T > *> | getAllOperators () | 
Protected Attributes | |
| Vector< T *> | m_phiCoarse | 
  Protected Attributes inherited from MultiGrid< T > | |
| bool | m_defined | 
| int | m_bottomCells | 
| Vector< MGLevelOp< T > * > | m_op | 
| Vector< T *> | m_residual | 
| Vector< T *> | m_correction | 
| std::vector< bool > | m_ownOp | 
Additional Inherited Members | |
  Public Attributes inherited from MultiGrid< T > | |
| int | m_depth | 
| int | m_defaultDepth | 
| int | m_pre | 
| int | m_post | 
| int | m_bottom | 
| int | m_cycle | 
| int | m_numMG | 
| bool | m_homogeneous | 
| LinearSolver< T > * | m_bottomSolver | 
| ProblemDomain | m_topLevelDomain | 
| FASMultiGrid< T >::FASMultiGrid | ( | ) | 
      
  | 
  virtual | 
References CH_TIME.
      
  | 
  virtual | 
Function to define a FASMultiGrid object.
a_factory is the factory for generating operators. a_bottomSolver is called at the bottom of v-cycle. a_domain is the problem domain at the top of the vcycle. maxDepth defines the location of the bottom of the v-cycle. The vycle will terminate (hit bottom) when the factory returns NULL for a paticular depth if maxdepth = -1. Otherwise the vycle terminates at maxdepth.
Reimplemented from MultiGrid< T >.
References MultiGrid< T >::define(), and MultiGrid< T >::m_homogeneous.
      
  | 
  virtual | 
solve L(a_phi) = a_rhs. Tolerance is how much you want the norm of the error reduced. verbosity is how chatty you want the function to be. maxIterations is the maximum number of v-cycles. This does the whole residual correction switcharoo and calls oneCycle up to maxIterations times, evaluating the residual as it goes.
Reimplemented from MultiGrid< T >.
References CH_TIME, Vector< T >::clear(), FASMultiGrid< T >::cycle(), MultiGrid< T >::init(), MultiGrid< T >::m_op, Max(), and pout().
      
  | 
  virtual | 
Execute ONE v-cycle of multigrid.
If you want the solution to converge, you need to iterate this. See solve() or AMRFASMultiGrid::solve for a more automatic solve() function.
Reimplemented from MultiGrid< T >.
References CH_assert.
Referenced by AMRFASMultiGrid< T >::VCycle().
| void FASMultiGrid< T >::oneCycle | ( | T & | a_e, | 
| const T & | a_res, | ||
| T * | a_phiCoarse | ||
| ) | 
      
  | 
  virtual | 
References CH_TIME, Vector< T >::clear(), MayDay::Error(), MultiGrid< T >::m_bottom, MultiGrid< T >::m_correction, MultiGrid< T >::m_cycle, MultiGrid< T >::m_depth, MultiGrid< T >::m_op, FASMultiGrid< T >::m_phiCoarse, MultiGrid< T >::m_post, MultiGrid< T >::m_pre, and MultiGrid< T >::m_residual.
Referenced by FASMultiGrid< T >::oneCycle(), and FASMultiGrid< T >::solve().
      
  | 
  protected | 
Referenced by FASMultiGrid< T >::cycle(), and FASMultiGrid< T >::oneCycle().
 1.8.13