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