![]() |
|
#include <trilinos_preconditioners.h>
Inheritance diagram for oomph::TrilinosMLPreconditioner:Public Member Functions | |
| TrilinosMLPreconditioner () | |
| virtual | ~TrilinosMLPreconditioner () |
| Destructor empty – clean up is done in base class. More... | |
| TrilinosMLPreconditioner (const TrilinosMLPreconditioner &)=delete | |
| Broken copy constructor. More... | |
| void | set_NSSA_default_values () |
| Broken assignment operator. More... | |
| void | set_DD_default_values () |
| void | set_DDML_default_values () |
| void | set_SA_default_values () |
| void | set_max_levels (int max_levels) |
| Function to set maximum number of levels. More... | |
| void | set_n_cycles (int n_cycles) |
| Function to set the number of cycles used. More... | |
| void | set_smoother_damping (double smoother_damping) |
| Function to set Smoother_damping. More... | |
| void | set_smoother_sweeps (int smoother_sweeps) |
| Function to set Smoother_sweeps. More... | |
| void | set_smoother_jacobi () |
| Function to set smoother type to "Jacobi". More... | |
| void | set_smoother_gauss_seidel () |
| Function to set smoother type to "symmetric Gauss-Seidel". More... | |
| void | set_output (int output) |
| Function to set output - controls level of information output by ML. More... | |
Public Member Functions inherited from oomph::TrilinosPreconditionerBase | |
| TrilinosPreconditionerBase () | |
| Constructor. More... | |
| virtual | ~TrilinosPreconditionerBase () |
| Destructor. More... | |
| void | clean_up_memory () |
| deletes the preconditioner, matrices and maps More... | |
| TrilinosPreconditionerBase (const TrilinosPreconditionerBase &)=delete | |
| Broken copy constructor. More... | |
| void | setup () |
| Broken assignment operator. More... | |
| void | setup (Epetra_CrsMatrix *epetra_matrix_pt) |
| void | preconditioner_solve (const DoubleVector &r, DoubleVector &z) |
| applies the preconditioner More... | |
| Epetra_Operator *& | epetra_operator_pt () |
| Epetra_Operator * | epetra_operator_pt () const |
Public Member Functions inherited from oomph::Preconditioner | |
| Preconditioner () | |
| Constructor. More... | |
| Preconditioner (const Preconditioner &)=delete | |
| Broken copy constructor. More... | |
| void | operator= (const Preconditioner &)=delete |
| Broken assignment operator. More... | |
| virtual | ~Preconditioner () |
| Destructor (empty) More... | |
| virtual void | preconditioner_solve_transpose (const DoubleVector &r, DoubleVector &z) |
| void | setup (DoubleMatrixBase *matrix_pt) |
| void | setup (const Problem *problem_pt, DoubleMatrixBase *matrix_pt) |
| void | enable_silent_preconditioner_setup () |
| Set up the block preconditioner quietly! More... | |
| void | disable_silent_preconditioner_setup () |
| Be verbose in the block preconditioner setup. More... | |
| virtual DoubleMatrixBase * | matrix_pt () const |
| Get function for matrix pointer. More... | |
| virtual void | set_matrix_pt (DoubleMatrixBase *matrix_pt) |
| Set the matrix pointer. More... | |
| virtual const OomphCommunicator * | comm_pt () const |
| Get function for comm pointer. More... | |
| virtual void | set_comm_pt (const OomphCommunicator *const comm_pt) |
| Set the communicator pointer. More... | |
| double | setup_time () const |
| Returns the time to setup the preconditioner. More... | |
| virtual void | turn_into_subsidiary_block_preconditioner (BlockPreconditioner< CRDoubleMatrix > *master_block_prec_pt, const Vector< unsigned > &doftype_in_master_preconditioner_coarse) |
| virtual void | turn_into_subsidiary_block_preconditioner (BlockPreconditioner< CRDoubleMatrix > *master_block_prec_pt, const Vector< unsigned > &doftype_in_master_preconditioner_coarse, const Vector< Vector< unsigned >> &doftype_coarsen_map_coarse) |
Public Member Functions inherited from oomph::DistributableLinearAlgebraObject | |
| DistributableLinearAlgebraObject () | |
| Default constructor - create a distribution. More... | |
| DistributableLinearAlgebraObject (const DistributableLinearAlgebraObject &matrix)=delete | |
| Broken copy constructor. More... | |
| void | operator= (const DistributableLinearAlgebraObject &)=delete |
| Broken assignment operator. More... | |
| virtual | ~DistributableLinearAlgebraObject () |
| Destructor. More... | |
| LinearAlgebraDistribution * | distribution_pt () const |
| access to the LinearAlgebraDistribution More... | |
| unsigned | nrow () const |
| access function to the number of global rows. More... | |
| unsigned | nrow_local () const |
| access function for the num of local rows on this processor. More... | |
| unsigned | nrow_local (const unsigned &p) const |
| access function for the num of local rows on this processor. More... | |
| unsigned | first_row () const |
| access function for the first row on this processor More... | |
| unsigned | first_row (const unsigned &p) const |
| access function for the first row on this processor More... | |
| bool | distributed () const |
| distribution is serial or distributed More... | |
| bool | distribution_built () const |
| void | build_distribution (const LinearAlgebraDistribution *const dist_pt) |
| void | build_distribution (const LinearAlgebraDistribution &dist) |
Static Public Attributes | |
| static int | Default_n_cycles = 1 |
Static Public Attributes inherited from oomph::TrilinosPreconditionerBase | |
| static double | Cumulative_preconditioner_solve_time = 0.0 |
Protected Member Functions | |
| void | setup_trilinos_preconditioner (Epetra_CrsMatrix *epetra_matrix_pt) |
Protected Member Functions inherited from oomph::DistributableLinearAlgebraObject | |
| void | clear_distribution () |
Protected Attributes | |
| Teuchos::ParameterList | ML_parameters |
Protected Attributes inherited from oomph::TrilinosPreconditionerBase | |
| Epetra_Operator * | Epetra_preconditioner_pt |
| Epetra_CrsMatrix * | Epetra_matrix_pt |
Protected Attributes inherited from oomph::Preconditioner | |
| bool | Silent_preconditioner_setup |
| Boolean to indicate whether or not the build should be done silently. More... | |
| std::ostream * | Stream_pt |
| Pointer to the output stream – defaults to std::cout. More... | |
An interface to the Trilinos ML class - provides a function to construct a serial ML object, and functions to modify some of the ML paramaters.
|
inline |
Constructor. Build with Smooth Aggretation (SA) default settings, but our own default number of V cycles (initialised to 1 to replicate TrilinosML's own behaviour).
References Default_n_cycles, and ML_parameters.
|
inlinevirtual |
|
delete |
Broken copy constructor.
|
inline |
Set control flags to values for classical smoothed aggregation- based 2-level domain decomposition
References ML_parameters.
|
inline |
Set control flags to values 3-level algebraic domain decomposition
References ML_parameters.
|
inline |
Function to set maximum number of levels.
References ML_parameters.
|
inline |
Function to set the number of cycles used.
References ML_parameters.
|
inline |
Broken assignment operator.
Set control flags to values for Petrov-Galerkin preconditioning - for non symmetric systems
References ML_parameters.
Referenced by main().
|
inline |
Function to set output - controls level of information output by ML.
References ML_parameters, and oomph::output().
|
inline |
Set control flags to values for classical smoothed aggregation preconditioning
References ML_parameters.
Referenced by main().
|
inline |
Function to set Smoother_damping.
References ML_parameters.
|
inline |
Function to set smoother type to "symmetric Gauss-Seidel".
References ML_parameters.
|
inline |
Function to set smoother type to "Jacobi".
References ML_parameters.
|
inline |
Function to set Smoother_sweeps.
References ML_parameters.
|
protectedvirtual |
Function to set up the ML preconditioner. It is assumed Trilinos_matrix_pt points to a suitable matrix.
Implements oomph::TrilinosPreconditionerBase.
References oomph::TrilinosPreconditionerBase::Epetra_preconditioner_pt, ML_parameters, oomph::oomph_info, and oomph::TimingHelpers::timer().
|
static |
Default number of V cycles (one to be consistent with previous default) (It's an int because Trilinos wants it to be!)
//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// (Static) default number of V cycles (one to be consistent with previous default). (It's an int because Trilinos wants it to be!)
Referenced by TrilinosMLPreconditioner().
|
protected |
Referenced by set_DD_default_values(), set_DDML_default_values(), set_max_levels(), set_n_cycles(), set_NSSA_default_values(), set_output(), set_SA_default_values(), set_smoother_damping(), set_smoother_gauss_seidel(), set_smoother_jacobi(), set_smoother_sweeps(), setup_trilinos_preconditioner(), and TrilinosMLPreconditioner().