54#include "Teuchos_RefCountPtr.hpp"
147 const int MaxIters = 1550,
148 const double Tol = 1e-9,
213 virtual std::ostream&
Print(std::ostream& os)
const;
295#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
340 Teuchos::RefCountPtr<Epetra_CrsMatrix>
L_;
342 Teuchos::RefCountPtr<Epetra_CrsMatrix>
U_;
Ifpack_CondestType
Ifpack_CondestType: enum to define the type of condition number estimate.
@ Ifpack_Cheap
cheap estimate
Ifpack_ScalingType enumerable type.
Ifpack_IKLU: A class for constructing and using an incomplete LU factorization of a given Epetra_RowM...
int NumMyRows_
Number of local rows.
int NumMyNonzeros_
Number of local nonzeros.
double Condest_
Condition number estimate.
double DropTolerance_
Discards all elements below this tolerance.
Teuchos::RefCountPtr< Epetra_CrsMatrix > U_
U factor.
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
csrn * csrnN_
Container for the L and U factor.
Ifpack_IKLU(const Ifpack_IKLU &RHS)
Copy constructor (should never be used)
bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized.
virtual int NumCompute() const
Returns the number of calls to Compute().
long long NumGlobalNonzeros64() const
double DropTolerance() const
Gets the dropping tolerance.
virtual ~Ifpack_IKLU()
Ifpack_IKLU Destructor.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
const Epetra_RowMatrix & A_
reference to the matrix to be preconditioned.
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
csr * csrA_
Containers for the matrix storage and permutation.
int Compute()
Compute IC factor U using the specified graph, diagonal perturbation thresholds and relaxation parame...
int NumApplyInverse_
Contains the number of successful call to ApplyInverse().
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
double ComputeFlops_
Contains the number of flops for Compute().
int NumCompute_
Contains the number of successful call to Compute().
bool IsComputed_
true if this object has been computed
const Epetra_RowMatrix & Matrix() const
Returns a reference to the matrix to be preconditioned.
Epetra_Time Time_
Used for timing purposed.
const char * Label() const
Returns the label of this object.
double ComputeTime_
Contains the time for all successful calls to Compute().
bool IsInitialized_
true if this object has been initialized
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
int NumInitialize_
Contains the number of successful calls to Initialize().
double Athresh_
Absolute threshold.
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
double AbsoluteThreshold() const
Get absolute threshold value.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
Ifpack_IKLU(const Epetra_RowMatrix *A)
Ifpack_IKLU constuctor with variable number of indices per row.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
void Destroy()
Releases all allocated memory.
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
double RelativeThreshold() const
Get relative threshold value.
bool UseTranspose_
true if transpose has to be used.
Teuchos::RefCountPtr< Epetra_Map > SerialMap_
Teuchos::RefCountPtr< Epetra_SerialComm > SerialComm_
virtual double InitializeTime() const
Returns the time spent in Initialize().
bool UseTranspose() const
Returns the current UseTranspose setting.
double Condest() const
Returns the computed estimated condition number, or -1.0 if no computed.
virtual double ComputeTime() const
Returns the time spent in Compute().
double Relax_
relaxation value
int Initialize()
Initialize L and U with values from user matrix A.
double InitializeTime_
Contains the time for all successful calls to Initialize().
const Epetra_CrsMatrix & L() const
Returns a reference to the L factor.
std::string Label_
Label for this object.
Teuchos::RefCountPtr< Epetra_CrsMatrix > L_
L factor.
const Epetra_CrsMatrix & U() const
Returns a reference to the U factor.
double RelaxValue() const
Set relative threshold value.
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().
const Epetra_Comm & Comm_
Reference to the communicator object.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
Ifpack_IKLU & operator=(const Ifpack_IKLU &)
operator= (should never be used)
double ApplyInverseTime_
Contains the time for all successful calls to ApplyInverse().
long long GlobalNonzeros_
Global number of nonzeros in L and U factors.
int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_IKLU forward/back solve on a Epetra_MultiVector X in Y.
double ApplyInverseFlops_
Contain sthe number of flops for ApplyInverse().
double LevelOfFill_
Level-of-fill.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
virtual std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
double LevelOfFill() const
double Rthresh_
Relative threshold.
int SetLabel(const char *Label_in)
Sets the label for this object.
virtual double ApplyInverseFlops() const
Returns the number of flops in the application of the preconditioner.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.