43 #ifndef IFPACK_KRYLOV_H 44 #define IFPACK_KRYLOV_H 48 #include "Teuchos_RefCountPtr.hpp" 54 #ifdef HAVE_IFPACK_AZTECOO 70 #ifdef HAVE_IFPACK_AZTECOO 75 #ifdef HAVE_IFPACK_EPETRAEXT 76 class EpetraExt_PointToBlockDiagPermute;
199 const int MaxIters = 1550,
200 const double Tol = 1e-9,
213 virtual std::ostream&
Print(std::ostream & os)
const;
337 bool ComputeCondest_;
354 Teuchos::RefCountPtr<Epetra_RowMatrix>
Matrix_;
359 Teuchos::RefCountPtr<Epetra_Time>
Time_;
364 #ifdef HAVE_IFPACK_AZTECOO 374 #endif // IFPACK_KRYLOV_H
int NumApplyInverse_
Contains the number of successful call to ApplyInverse().
virtual double ApplyInverseFlops() const
Returns the number of flops for the application of the preconditioner.
int PreconditionerType_
Preconditioner - 0 for none, 1 for Jacobi, 2 for GS, 3 for SGS.
double Tolerance_
Residual Tolerance.
virtual int Initialize()
Computes all it is necessary to initialize the preconditioner.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
double ApplyInverseTime_
Contains the time for all successful calls to ApplyInverse().
double DampingParameter_
Damping parameter for inner preconditioner.
virtual const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual void SetLabel()
Sets the label.
bool ZeroStartingSolution_
If true, the starting solution is always the zero vector.
int NumInitialize_
Contains the number of successful calls to Initialize().
virtual double NormInf() const
Returns the infinity norm of the global matrix (not implemented)
int NumSweeps_
Number of GS or Jacobi sweeps.
virtual bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
double ComputeFlops_
Contains the number of flops for Compute().
int BlockSize_
Block Size (for block relaxation)
std::string Label_
Contains the label of this object.
long long NumGlobalRows_
Number of global rows.
virtual int Compute()
Computes the preconditioners.
Ifpack_CondestType
Ifpack_CondestType: enum to define the type of condition number estimate.
virtual double ComputeTime() const
Returns the time spent in Compute().
double ApplyInverseFlops_
Contain sthe number of flops for ApplyInverse().
Teuchos::RefCountPtr< Epetra_Operator > Operator_
Pointers to the matrix as an Epetra_Operator.
int Iterations_
Max number of iterations.
virtual int SetUseTranspose(bool UseTranspose_in)
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
virtual int SetParameters(Teuchos::ParameterList &List)
Sets all the parameters for the preconditioner.
virtual double Condest() const
Returns the condition number estimate, or -1.0 if not computed.
virtual const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
virtual const Epetra_RowMatrix & Matrix() const
Returns a pointer to the matrix to be preconditioned.
bool IsInitialized_
If true, the preconditioner has been computed successfully.
int NumCompute_
Contains the number of successful call to Compute().
virtual int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the preconditioner to X, returns the result in Y.
long long NumGlobalNonzeros_
Number of global nonzeros.
bool IsRowMatrix_
If true, the Operator_ is an Epetra_RowMatrix.
double InitializeTime_
Contains the time for all successful calls to Initialize().
virtual const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.
virtual const char * Label() const
int NumMyRows_
Number of local rows.
Ifpack_Krylov(Epetra_Operator *Matrix)
Ifpack_Krylov(const Ifpack_Krylov &rhs)
Copy constructor (PRIVATE, should not be used)
Ifpack_Krylov: class for smoothing with Krylov solvers in Ifpack.
Teuchos::RefCountPtr< Epetra_Time > Time_
Time object to track timing.
virtual bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized, false otherwise.
double ComputeTime_
Contains the time for all successful calls to Compute().
Teuchos::RCP< Ifpack_Preconditioner > IfpackPrec_
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
virtual int NumCompute() const
Returns the number of calls to Compute().
virtual bool IsComputed() const
Returns true if the preconditioner has been successfully computed.
virtual std::ostream & Print(std::ostream &os) const
Prints object to an output stream.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
int NumMyNonzeros_
Number of local nonzeros.
virtual ~Ifpack_Krylov()
Destructor.
Teuchos::RefCountPtr< Epetra_RowMatrix > Matrix_
Pointers to the matrix as an Epetra_RowMatrix.
Ifpack_Krylov & operator=(const Ifpack_Krylov &rhs)
operator = (PRIVATE, should not be used)
bool UseTranspose_
If true, use the tranpose of Matrix_.
bool IsComputed_
If true, the preconditioner has been computed successfully.
virtual bool UseTranspose() const
Returns the current UseTranspose setting.
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
virtual double InitializeTime() const
Returns the time spent in Initialize().
double Condest_
Contains the estimated condition number.
virtual int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the matrix to an Epetra_MultiVector.
int SolverType_
Solver - 0 for CG, 1 for GMRES.