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