|
| SAMRAI::tbox::Pointer< FACPreconditionerStrategy > | d_fac_strategy |
| |
| SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > | d_hierarchy |
| |
| int | d_coarsest_ln = 0 |
| |
| int | d_finest_ln = 0 |
| |
| MGCycleType | d_cycle_type = V_CYCLE |
| |
| int | d_num_pre_sweeps = 0 |
| |
| int | d_num_post_sweeps = 2 |
| |
| void | setInitialGuessNonzero (bool initial_guess_nonzero=true) override |
| | Set whether the initial guess is non-zero. More...
|
| |
| void | setMaxIterations (int max_iterations) override |
| | Set the maximum number of iterations to use per solve. More...
|
| |
| void | setMGCycleType (MGCycleType cycle_type) |
| | Set the multigrid algorithm cycle type. More...
|
| |
| MGCycleType | getMGCycleType () const |
| | Get the multigrid algorithm cycle type. More...
|
| |
| void | setNumPreSmoothingSweeps (int num_pre_sweeps) |
| | Set the number of pre-smoothing sweeps to employ. More...
|
| |
| int | getNumPreSmoothingSweeps () const |
| | Get the number of pre-smoothing sweeps employed by the preconditioner. More...
|
| |
| void | setNumPostSmoothingSweeps (int num_post_sweeps) |
| | Set the number of post-smoothing sweeps to employ. More...
|
| |
| int | getNumPostSmoothingSweeps () const |
| | Get the number of post-smoothing sweeps employed by the preconditioner. More...
|
| |
| SAMRAI::tbox::Pointer< FACPreconditionerStrategy > | getFACPreconditionerStrategy () const |
| | Get the FAC preconditioner strategy objects employed by the preconditioner. More...
|
| |
| void | FACVCycleNoPreSmoothing (SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &u, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &f, int level_num) |
| |
| void | muCycle (SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &u, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &f, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &r, int level_num, int mu) |
| |
| void | FCycle (SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &u, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &f, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &r, int level_num) |
| |
| void | FMGCycle (SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &u, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &f, SAMRAI::solv::SAMRAIVectorReal< NDIM, double > &r, int level_num, int mu) |
| |
| | FACPreconditioner ()=delete |
| | Default constructor. More...
|
| |
| | FACPreconditioner (const FACPreconditioner &from)=delete |
| | Copy constructor. More...
|
| |
| FACPreconditioner & | operator= (const FACPreconditioner &that)=delete |
| | Assignment operator. More...
|
| |
| void | getFromInput (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > db) |
| |
This class is similar to the SAMRAI class SAMRAI::solv::FACPreconditioner, except that this class has been optimized for the case in which the solver is to be used as a single-pass preconditioner, especially for the case in which pre-smoothing sweeps are not needed. This class is not suitable for use as a stand-alone solver; rather, it is intended to be used in conjunction with an iterative Krylov method.
Sample parameters for initialization from database (and their default values):
cycle_type = "V_CYCLE" // see setMGCycleType()
num_pre_sweeps = 0 // see setNumPreSmoothingSweeps()
num_post_sweeps = 2 // see setNumPostSmoothingSweeps()
enable_logging = FALSE // see setLoggingEnabled()
By default, the solveSystem() method computes some required hierarchy dependent data before solving and removes that data after the solve. For multiple solves that use the same hierarchy configuration, it is more efficient to:
- initialize the hierarchy-dependent data required by the solver via initializeSolverState(),
- solve the system one or more times via solveSystem(), and
- remove the hierarchy-dependent data via deallocateSolverState().
Note that it is generally necessary to reinitialize the solver state when the hierarchy configuration changes.
When linear operator or preconditioner objects have been registered with this class via setOperator() and setPreconditioner(), they are also initialized by this member function.
- Parameters
-
| x | solution vector |
| b | right-hand-side vector |
Conditions on Parameters:
- vectors x and b must have same patch hierarchy
- vectors x and b must have same structure, depth, etc.
- Note
- The vector arguments for solveSystem() need not match those for initializeSolverState(). However, there must be a certain degree of similarity, including:
- hierarchy configuration (hierarchy pointer and range of levels)
- number, type and alignment of vector component data
- ghost cell widths of data in the solution x and right-hand-side b vectors
- Note
- It is safe to call initializeSolverState() when the state is already initialized. In this case, the solver state is first deallocated and then reinitialized.
- See also
- deallocateSolverState
Reimplemented from IBTK::GeneralSolver.