46#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48#warning "The Ifpack package is deprecated"
52#include "Ifpack_ConfigDefs.h"
53#include "Ifpack_CondestType.h"
55#include "Ifpack_Preconditioner.h"
56#include "Epetra_Vector.h"
57#include "Epetra_CrsMatrix.h"
58#include "Epetra_Time.h"
59#include "Teuchos_RefCountPtr.hpp"
124 return(IsInitialized_);
176 double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
177 const int MaxIters = 1550,
178 const double Tol = 1e-9,
189#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
192 long long NumGlobalNonzeros64()
const {
return(
H().NumGlobalNonzeros64());};
212 int SetUseTranspose(
bool UseTranspose_in) {UseTranspose_ = UseTranspose_in;
return(0);};
233 const char* Label()
const
235 return(Label_.c_str());
238 int SetLabel(
const char* Label_in)
245 virtual std::ostream&
Print(std::ostream& os)
const;
250 return(NumInitialize_);
262 return(NumApplyInverse_);
268 return(InitializeTime_);
274 return(ComputeTime_);
280 return(ApplyInverseTime_);
292 return(ComputeFlops_);
298 return(ApplyInverseFlops_);
307 return(LevelOfFill_);
331 return(DropTolerance_);
357 Teuchos::RefCountPtr<Epetra_CrsMatrix> H_;
367 double DropTolerance_;
385 mutable int NumApplyInverse_;
387 double InitializeTime_;
391 mutable double ApplyInverseTime_;
393 double ComputeFlops_;
395 mutable double ApplyInverseFlops_;
399 long long GlobalNonzeros_;
400 Teuchos::RefCountPtr<Epetra_SerialComm> SerialComm_;
401 Teuchos::RefCountPtr<Epetra_Map> SerialMap_;
403 template<
typename int_type>
Ifpack_ScalingType enumerable type.
virtual const Epetra_Map & OperatorDomainMap() const=0
virtual const Epetra_Map & OperatorRangeMap() const=0
Ifpack_ICT: A class for constructing and using an incomplete Cholesky factorization of a given Epetra...
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
double LevelOfFill() const
Returns the level-of-fill.
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
double RelaxValue() const
Returns the relaxation value.
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_ICT forward/back solve on a Epetra_MultiVector X in Y.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
virtual int NumCompute() const
Returns the number of calls to Compute().
virtual double InitializeTime() const
Returns the time spent in Initialize().
virtual std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
bool UseTranspose() const
Returns the current UseTranspose setting.
double DropTolerance() const
Returns the drop threshold.
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
double Condest() const
Returns the computed condition number estimate, or -1.0 if not computed.
virtual double ComputeTime() const
Returns the time spent in Compute().
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
const Epetra_CrsMatrix & H() const
Returns the address of the D factor associated with this factored matrix.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
double RelativeThreshold() const
Returns the relative threshold.
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
double AbsoluteThreshold() const
Returns the absolute threshold.
virtual double ApplyInverseFlops() const
Returns the number of flops in all applications of ApplyInverse().
int Initialize()
Initialize L and U with values from user matrix A.
virtual ~Ifpack_ICT()
Ifpack_ICT Destructor.
bool IsInitialized() const
Returns true is the preconditioner has been successfully initialized.
virtual double ComputeFlops() const
Returns the number of flops in all applications of Compute().
int Compute()
Compute IC factor U using the specified graph, diagonal perturbation thresholds and relaxation parame...
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
const Epetra_RowMatrix & Matrix() const
Returns a reference to the matrix to be preconditioned.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.