46#include "Ifpack_ConfigDefs.h"
47#include "Ifpack_CondestType.h"
49#include "Ifpack_Preconditioner.h"
50#include "Epetra_Vector.h"
51#include "Epetra_CrsMatrix.h"
52#include "Epetra_Time.h"
53#include "Teuchos_RefCountPtr.hpp"
115 return(IsInitialized_);
148 double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
149 const int MaxIters = 1550,
150 const double Tol = 1e-9,
168 int SetUseTranspose(
bool UseTranspose_in) {UseTranspose_ = UseTranspose_in;
return(0);};
203 return(Label_.c_str());
214 virtual std::ostream&
Print(std::ostream& os)
const;
219 return(NumInitialize_);
231 return(NumApplyInverse_);
237 return(InitializeTime_);
243 return(ComputeTime_);
249 return(ApplyInverseTime_);
260 return(ComputeFlops_);
265 return(ApplyInverseFlops_);
268 inline double LevelOfFill()
const {
269 return(LevelOfFill_);
292 return(DropTolerance_);
296#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
302 long long NumGlobalNonzeros64()
const {
304 return(
L().NumGlobalNonzeros64() +
U().NumGlobalNonzeros64() -
L().NumGlobalRows64());
330 template<
typename int_type>
344 Teuchos::RefCountPtr<Epetra_CrsMatrix> L_;
346 Teuchos::RefCountPtr<Epetra_CrsMatrix> U_;
358 double DropTolerance_;
374 mutable int NumApplyInverse_;
376 double InitializeTime_;
380 mutable double ApplyInverseTime_;
382 double ComputeFlops_;
384 mutable double ApplyInverseFlops_;
388 long long GlobalNonzeros_;
389 Teuchos::RefCountPtr<Epetra_SerialComm> SerialComm_;
390 Teuchos::RefCountPtr<Epetra_Map> SerialMap_;
Ifpack_ScalingType enumerable type.
virtual const Epetra_Map & OperatorDomainMap() const=0
virtual const Epetra_Map & OperatorRangeMap() const=0
Ifpack_ILUT: A class for constructing and using an incomplete LU factorization of a given Epetra_RowM...
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
int Compute()
Compute IC factor U using the specified graph, diagonal perturbation thresholds and relaxation parame...
double RelativeThreshold() const
Get relative threshold value.
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
double Condest() const
Returns the computed estimated condition number, or -1.0 if no computed.
virtual double InitializeTime() const
Returns the time spent in Initialize().
double DropTolerance() const
Gets the dropping tolerance.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_ILUT forward/back solve on a Epetra_MultiVector X in Y.
int SetLabel(const char *Label_in)
Sets the label for this object.
double RelaxValue() const
Set relative threshold value.
virtual int NumCompute() const
Returns the number of calls to Compute().
const Epetra_CrsMatrix & L() const
Returns a reference to the L factor.
const Epetra_CrsMatrix & U() const
Returns a reference to the U factor.
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
virtual std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized.
const char * Label() const
Returns the label of this object.
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
int Initialize()
Initialize L and U with values from user matrix A.
virtual double ComputeTime() const
Returns the time spent in Compute().
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
virtual ~Ifpack_ILUT()
Ifpack_ILUT Destructor.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
bool UseTranspose() const
Returns the current UseTranspose setting.
virtual double ApplyInverseFlops() const
Returns the number of flops in the application of the preconditioner.
const Epetra_RowMatrix & Matrix() const
Returns a reference to the matrix to be preconditioned.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
double AbsoluteThreshold() const
Get absolute threshold value.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.