43 #ifndef IFPACK_AMESOS_H
44 #define IFPACK_AMESOS_H
46 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48 #warning "The Ifpack package is deprecated"
52 #include "Ifpack_ConfigDefs.h"
53 #include "Ifpack_Preconditioner.h"
54 #include "Epetra_Operator.h"
55 #include "Teuchos_ParameterList.hpp"
56 #include "Teuchos_RefCountPtr.hpp"
61 class Amesos_BaseSolver;
151 virtual double NormInf()
const;
157 virtual const char *
Label()
const;
181 return(IsInitialized_);
223 virtual double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
224 const int MaxIters = 1550,
225 const double Tol = 1e-9,
237 return(NumInitialize_);
249 return(NumApplyInverse_);
255 return(InitializeTime_);
261 return(ComputeTime_);
267 return(ApplyInverseTime_);
279 return(ComputeFlops_);
285 return(ApplyInverseFlops_);
289 virtual const Teuchos::ParameterList& List()
const
295 virtual std::ostream&
Print(std::ostream& os)
const;
312 IsInitialized_ = IsInitialized_in;
318 IsComputed_ = IsComputed_in;
324 NumInitialize_ = NumInitialize_in;
330 NumCompute_ = NumCompute_in;
336 NumApplyInverse_ = NumApplyInverse_in;
342 InitializeTime_ = InitializeTime_in;
348 ComputeTime_ = ComputeTime_in;
354 ApplyInverseTime_ = ApplyInverseTime_in;
360 ComputeFlops_ = ComputeFlops_in;
366 ApplyInverseFlops_ = ApplyInverseFlops_in;
370 inline void SetList(
const Teuchos::ParameterList& List_in)
379 Teuchos::RefCountPtr<const Epetra_RowMatrix> Matrix_;
382 Teuchos::RefCountPtr<Epetra_LinearProblem> Problem_;
384 Teuchos::RefCountPtr<Amesos_BaseSolver> Solver_;
386 Teuchos::ParameterList List_;
404 mutable int NumApplyInverse_;
407 double InitializeTime_;
411 mutable double ApplyInverseTime_;
413 Teuchos::RefCountPtr<Epetra_Time> Time_;
416 double ComputeFlops_;
418 double ApplyInverseFlops_;
424 #endif // IFPACK_AMESOS_H
virtual const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
void SetComputeFlops(const double ComputeFlops_in)
Sets ComputeFlops_.
void SetComputeTime(const double ComputeTime_in)
Sets ComputeTime_.
void SetNumInitialize(const int NumInitialize_in)
Sets NumInitialize_.
virtual double ComputeTime() const
Returns the total time spent in Compute().
virtual int NumInitialize() const
Returns the number of calls to Initialize().
virtual double ApplyInverseTime() const
Returns the total time spent in ApplyInverse().
virtual int SetParameters(Teuchos::ParameterList &List)
Sets all the parameters for the preconditioner.
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().
Ifpack_Amesos(Epetra_RowMatrix *Matrix)
Constructor.
virtual double ApplyInverseFlops() const
Returns the total number of flops to apply the preconditioner.
virtual int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the matrix to an Epetra_MultiVector.
void SetIsInitialized(const bool IsInitialized_in)
Sets IsInitialized_.
virtual const Epetra_RowMatrix & Matrix() const
Returns a const reference to the internally stored matrix.
void SetList(const Teuchos::ParameterList &List_in)
Set List_.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
virtual bool IsComputed() const
Returns true if the preconditioner has been successfully computed.
Ifpack_Amesos: a class to use Amesos' factorizations as preconditioners.
virtual int Compute()
Computes the preconditioners.
void SetApplyInverseTime(const double ApplyInverseTime_in)
Sets ApplyInverseTime_.
virtual int Initialize()
Initializes the preconditioners.
void SetIsComputed(const int IsComputed_in)
Sets IsComputed_.
virtual int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied (not implemented).
virtual const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
virtual const char * Label() const
Returns a character string describing the operator.
virtual double Condest() const
Returns the estimated condition number, never computes it.
virtual int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the preconditioner to X, returns the result in Y.
virtual double InitializeTime() const
Returns the total time spent in Initialize().
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
virtual bool UseTranspose() const
Returns the current UseTranspose setting.
void SetNumApplyInverse(const int NumApplyInverse_in)
Sets NumApplyInverse_.
void SetNumCompute(const int NumCompute_in)
Sets NumCompute_.
virtual bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
void SetLabel(const char *Label_in)
Sets the label.
virtual ~Ifpack_Amesos()
Destructor.
Ifpack_Amesos & operator=(const Ifpack_Amesos &rhs)
Operator=.
virtual bool IsInitialized() const
Returns true is the preconditioner has been successfully initialized.
virtual double NormInf() const
Returns the infinity norm of the global matrix (not implemented)
void SetInitializeTime(const double InitializeTime_in)
Sets InitializeTime_.
virtual const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.
virtual std::ostream & Print(std::ostream &os) const
Prints on ostream basic information about this object.
void SetApplyInverseFlops(const double ApplyInverseFlops_in)
Sets ComputeFlops_.