|
Ifpack Package Browser (Single Doxygen Collection)
Development
|
Go to the documentation of this file.
43 #ifndef IFPACK_AMESOS_H
44 #define IFPACK_AMESOS_H
48 #include "Epetra_Operator.h"
49 #include "Teuchos_ParameterList.hpp"
50 #include "Teuchos_RefCountPtr.hpp"
55 class Amesos_BaseSolver;
146 virtual double NormInf()
const;
152 virtual const char *
Label()
const;
219 const int MaxIters = 1550,
220 const double Tol = 1e-9,
290 virtual std::ostream&
Print(std::ostream& os)
const;
374 Teuchos::RefCountPtr<const Epetra_RowMatrix>
Matrix_;
377 Teuchos::RefCountPtr<Epetra_LinearProblem>
Problem_;
379 Teuchos::RefCountPtr<Amesos_BaseSolver>
Solver_;
408 Teuchos::RefCountPtr<Epetra_Time>
Time_;
419 #endif // IFPACK_AMESOS_H
Teuchos::RefCountPtr< Epetra_LinearProblem > Problem_
Linear problem required by Solver_.
virtual int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the matrix to an Epetra_MultiVector.
virtual const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
void SetList(const Teuchos::ParameterList &List_in)
Set List_.
void SetLabel(const char *Label_in)
Sets the label.
Ifpack_Amesos: a class to use Amesos' factorizations as preconditioners.
virtual const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
double InitializeTime_
Contains the time for all successful calls to Initialize().
bool IsComputed_
If true, the preconditioner has been successfully computed.
virtual bool IsComputed() const
Returns true if the preconditioner has been successfully computed.
void SetApplyInverseTime(const double ApplyInverseTime_in)
Sets ApplyInverseTime_.
double ApplyInverseTime_
Contains the time for all successful calls to ApplyInverse().
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
virtual const Epetra_RowMatrix & Matrix() const
Returns a const reference to the internally stored matrix.
void SetIsComputed(const int IsComputed_in)
Sets IsComputed_.
virtual double NormInf() const
Returns the infinity norm of the global matrix (not implemented)
void SetNumInitialize(const int NumInitialize_in)
Sets NumInitialize_.
std::string Label_
Contains the label of this object.
virtual int Initialize()
Initializes the preconditioners.
void SetComputeTime(const double ComputeTime_in)
Sets ComputeTime_.
void SetNumCompute(const int NumCompute_in)
Sets NumCompute_.
virtual int SetParameters(Teuchos::ParameterList &List)
Sets all the parameters for the preconditioner.
virtual std::ostream & Print(std::ostream &os) const
Prints on ostream basic information about this object.
void SetComputeFlops(const double ComputeFlops_in)
Sets ComputeFlops_.
Ifpack_CondestType
Ifpack_CondestType: enum to define the type of condition number estimate.
double ApplyInverseFlops_
Contain sthe number of flops for ApplyInverse().
bool UseTranspose_
If true, the preconditioner solves for the transpose of the matrix.
int NumApplyInverse_
Contains the number of successful call to ApplyInverse().
double Condest_
Contains the estimated condition number.
virtual const char * Label() const
Returns a character string describing the operator.
bool IsEmpty_
If true, the linear system on this processor is empty, thus the preconditioner is null operation.
virtual double Condest() const
Returns the estimated condition number, never computes it.
Teuchos::RefCountPtr< Amesos_BaseSolver > Solver_
Amesos solver, use to apply the inverse of the local matrix.
void SetInitializeTime(const double InitializeTime_in)
Sets InitializeTime_.
virtual bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
virtual bool IsInitialized() const
Returns true is the preconditioner has been successfully initialized.
virtual double InitializeTime() const
Returns the total time spent in Initialize().
virtual double ApplyInverseTime() const
Returns the total time spent in ApplyInverse().
virtual const Teuchos::ParameterList & List() const
double ComputeTime_
Contains the time for all successful calls to Compute().
Teuchos::ParameterList List_
Contains a copy of the input parameter list.
Teuchos::RefCountPtr< Epetra_Time > Time_
Time object.
Teuchos::RefCountPtr< const Epetra_RowMatrix > Matrix_
Pointers to the matrix to be preconditioned.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
virtual int Compute()
Computes the preconditioners.
Ifpack_Amesos & operator=(const Ifpack_Amesos &rhs)
Operator=.
int NumInitialize_
Contains the number of successful calls to Initialize().
virtual int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied (not implemented).
void SetApplyInverseFlops(const double ApplyInverseFlops_in)
Sets ComputeFlops_.
virtual const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
void SetIsInitialized(const bool IsInitialized_in)
Sets IsInitialized_.
virtual bool UseTranspose() const
Returns the current UseTranspose setting.
Ifpack_Amesos(Epetra_RowMatrix *Matrix)
Constructor.
double ComputeFlops_
Contains the number of flops for Compute().
virtual double ComputeTime() const
Returns the total time spent in Compute().
int NumCompute_
Contains the number of successful call to Compute().
void SetNumApplyInverse(const int NumApplyInverse_in)
Sets NumApplyInverse_.
bool IsInitialized_
If true, the preconditioner has been successfully initialized.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
virtual ~Ifpack_Amesos()
Destructor.
virtual double ComputeFlops() const
Returns the total number of flops to computate the preconditioner.
virtual int NumCompute() const
Returns the number of calls to Compute().
virtual double ApplyInverseFlops() const
Returns the total number of flops to apply the preconditioner.
virtual int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the preconditioner to X, returns the result in Y.