50 #include "Epetra_Vector.h" 51 #include "Epetra_CrsMatrix.h" 52 #include "Epetra_RowMatrix.h" 53 #include "Epetra_Time.h" 54 #include "Teuchos_RefCountPtr.hpp" 58 class Epetra_MultiVector;
173 int ApplyInverse(
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const;
175 int Apply(
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const;
187 const int MaxIters = 1550,
188 const double Tol = 1e-9,
189 Epetra_RowMatrix* Matrix_in = 0);
205 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 213 const Epetra_Vector &
D()
const {
return(*
D_);};
216 const Epetra_CrsMatrix &
U()
const {
return(*
U_);};
263 virtual std::ostream&
Print(std::ostream& os)
const;
340 Teuchos::RefCountPtr<Epetra_RowMatrix>
A_;
342 Teuchos::RefCountPtr<Epetra_CrsMatrix>
U_;
343 Teuchos::RefCountPtr<Epetra_Vector>
D_;
double InitializeTime_
Contains the time for all successful calls to Initialize().
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().
double DropTolerance() const
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
int SetParameter(const std::string Name, const double Value)
int SetParameter(const std::string Name, const int Value)
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
long long NumGlobalNonzeros64() const
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
Epetra_Time Time_
Used for timing purposes.
Teuchos::RefCountPtr< Epetra_RowMatrix > A_
virtual double ComputeTime() const
Returns the time spent in Compute().
const Epetra_RowMatrix & Matrix() const
Returns a pointer to the matrix to be preconditioned.
Ifpack_IC(Epetra_RowMatrix *A)
Ifpack_IC constuctor with variable number of indices per row.
virtual ~Ifpack_IC()
Ifpack_IC Destructor.
double ApplyInverseTime_
Contains the time for all successful calls to ApplyInverse().
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
Teuchos::RefCountPtr< Epetra_Vector > D_
const char * Label() const
virtual double InitializeTime() const
Returns the time spent in Initialize().
virtual int NumInitialize() const
Returns the number of calls to Initialize().
Teuchos::RefCountPtr< Epetra_CrsMatrix > U_
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
double AbsoluteThreshold() const
Ifpack_CondestType
Ifpack_CondestType: enum to define the type of condition number estimate.
int Initialize()
Initialize L and U with values from user matrix A.
double RelativeThreshold() const
void SetAbsoluteThreshold(double Athresh)
Set absolute threshold value.
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
double GetAbsoluteThreshold()
Get absolute threshold value.
double ApplyInverseFlops_
Contain sthe number of flops for ApplyInverse().
int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Epetra_RowMatrix & Matrix()
Ifpack_ScalingType enumerable type.
double LevelOfFill() const
virtual std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
const Epetra_Vector & D() const
Returns the address of the D factor associated with this factored matrix.
const Epetra_Comm & Comm_
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_IC forward/back solve on a Epetra_MultiVector X in Y...
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
double ComputeFlops_
Contains the number of flops for Compute().
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
int SetLabel(const char *Label_in)
bool UseTranspose() const
Returns the current UseTranspose setting.
int NumCompute_
Contains the number of successful call to Compute().
virtual double ApplyInverseFlops() const
Returns the number of flops in the application of the preconditioner.
double GetRelativeThreshold()
Get relative threshold value.
const Epetra_CrsMatrix & U() const
Returns the address of the U factor associated with this factored matrix.
double Condest() const
Returns the computed condition number estimate, or -1.0 if not computed.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
void SetRelativeThreshold(double Rthresh)
Set relative threshold value.
virtual int NumCompute() const
Returns the number of calls to Compute().
Ifpack_IC: A class for constructing and using an incomplete Cholesky factorization of a given Epetra_...
#define IFPACK_CHK_ERR(ifpack_err)
int Compute()
Compute IC factor U using the specified graph, diagonal perturbation thresholds and relaxation parame...
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
int NumInitialize_
Contains the number of successful calls to Initialize().
int NumApplyInverse_
Contains the number of successful call to ApplyInverse().