43 #ifndef IFPACK_POINTRELAXATION_H
44 #define IFPACK_POINTRELAXATION_H
46 #include "Ifpack_ConfigDefs.h"
47 #include "Ifpack_Preconditioner.h"
49 #include "Epetra_Vector.h"
50 #include "Epetra_Time.h"
51 #include "Epetra_RowMatrix.h"
52 #include "Epetra_Import.h"
54 #include "Teuchos_RefCountPtr.hpp"
155 UseTranspose_ = UseTranspose_in;
177 if (X.NumVectors() != Y.NumVectors())
206 virtual const char * Label()
const
208 return(Label_.c_str());
214 return(UseTranspose_);
236 return(IsInitialized_);
258 virtual double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
259 const int MaxIters = 1550,
260 const double Tol = 1e-9,
273 virtual std::ostream&
Print(std::ostream & os)
const;
282 return(NumInitialize_);
294 return(NumApplyInverse_);
300 return(InitializeTime_);
306 return(ComputeTime_);
312 return(ApplyInverseTime_);
324 return(ComputeFlops_);
330 return(ApplyInverseFlops_);
386 virtual void SetLabel();
408 mutable int NumApplyInverse_;
410 double InitializeTime_;
414 mutable double ApplyInverseTime_;
416 double ComputeFlops_;
418 mutable double ApplyInverseFlops_;
425 double DampingFactor_;
434 bool ComputeCondest_;
439 double MinDiagonalValue_;
448 long long NumGlobalRows_;
450 long long NumGlobalNonzeros_;
452 Teuchos::RefCountPtr<const Epetra_RowMatrix> Matrix_;
454 Teuchos::RefCountPtr<Epetra_Import> Importer_;
456 mutable Teuchos::RefCountPtr<Epetra_Vector> Diagonal_;
458 Teuchos::RefCountPtr<Epetra_Time> Time_;
462 bool ZeroStartingSolution_;
471 int NumLocalSmoothingIndices_;
473 int * LocalSmoothingIndices_;
481 #endif // IFPACK_POINTRELAXATION_H
virtual std::ostream & Print(std::ostream &os) const
Prints object to an output stream.
virtual int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the matrix to an Epetra_MultiVector.
virtual const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
virtual const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
virtual int SetUseTranspose(bool UseTranspose_in)
virtual double ApplyInverseFlops() const
Returns the number of flops for the application of the preconditioner.
Ifpack_PointRelaxation(const Epetra_RowMatrix *Matrix)
Ifpack_PointRelaxation constructor with given Epetra_RowMatrix.
virtual int NumCompute() const
Returns the number of calls to Compute().
virtual double Condest() const
Returns the condition number estimate, or -1.0 if not computed.
virtual int SetParameters(Teuchos::ParameterList &List)
Sets all the parameters for the preconditioner.
virtual double ComputeTime() const
Returns the time spent in Compute().
virtual double NormInf() const
Returns the infinity norm of the global matrix (not implemented)
virtual bool UseTranspose() const
Returns the current UseTranspose setting.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
virtual bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized, false otherwise.
Ifpack_PointRelaxation: a class to define point relaxation preconditioners of for Epetra_RowMatrix's...
virtual int Compute()
Computes the preconditioners.
virtual int Initialize()
Computes all it is necessary to initialize the preconditioner.
virtual const Epetra_RowMatrix & Matrix() const
Returns a pointer to the matrix to be preconditioned.
virtual bool IsComputed() const
Returns true if the preconditioner has been successfully computed.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
virtual bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
virtual const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual double InitializeTime() const
Returns the time spent in Initialize().
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
virtual int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Applies the preconditioner to X, returns the result in Y.
virtual ~Ifpack_PointRelaxation()
Destructor.