|
Ifpack Package Browser (Single Doxygen Collection)
Development
|
Go to the documentation of this file.
51 #include "Epetra_CompObject.h"
52 #include "Epetra_MultiVector.h"
53 #include "Epetra_Vector.h"
54 #include "Epetra_CrsGraph.h"
55 #include "Epetra_CrsMatrix.h"
56 #include "Epetra_BlockMap.h"
57 #include "Epetra_Map.h"
58 #include "Epetra_Object.h"
59 #include "Epetra_Comm.h"
60 #include "Epetra_RowMatrix.h"
61 #include "Epetra_Time.h"
62 #include "Teuchos_RefCountPtr.hpp"
177 const int MaxIters = 1550,
178 const double Tol = 1e-9,
234 virtual std::ostream&
Print(std::ostream& os)
const;
336 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
374 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
392 Teuchos::RefCountPtr<Epetra_RowMatrix>
A_;
393 Teuchos::RefCountPtr<Ifpack_IlukGraph>
Graph_;
402 Teuchos::RefCountPtr<Epetra_CrsMatrix>
L_;
404 Teuchos::RefCountPtr<Epetra_CrsMatrix>
U_;
408 Teuchos::RefCountPtr<Epetra_Vector>
D_;
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
virtual std::ostream & Print(std::ostream &os) const
Prints on stream basic information about this object.
Teuchos::RefCountPtr< Epetra_Map > IlukDomainMap_
Ifpack_ILU(const Ifpack_ILU &RHS)
Copy constructor (should never be used)
virtual double InitializeTime() const
Returns the time spent in Initialize().
Teuchos::RefCountPtr< Epetra_Map > IlukRowMap_
const Epetra_Map * U_DomainMap_
void Destroy()
Destroys all internal data.
const Ifpack_IlukGraph & Graph() const
Returns the address of the Ifpack_IlukGraph associated with this factored matrix.
double ComputeTime_
Contains the time for all successful calls to Compute().
Epetra_RowMatrix & Matrix()
Returns a reference to the matrix.
double Condest() const
Returns the computed estimated condition number, or -1.0 if not computed.
virtual int NumCompute() const
Returns the number of calls to Compute().
double ComputeFlops_
Contains the number of flops for Compute().
double Rthresh_
relative threshold
int NumMyCols() const
Returns the number of local matrix columns.
int NumGlobalRows() const
Returns the number of global matrix rows.
int NumMyRows() const
Returns the number of local matrix rows.
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
int SetLabel(const char *Label_in)
Sets label for this object.
bool IsComputed_
If true, the preconditioner has been successfully computed.
Teuchos::RefCountPtr< Epetra_CrsGraph > L_Graph_
long long NumGlobalNonzeros64() const
virtual int NumMyBlockDiagonals() const
Returns the number of diagonal entries found in the local input graph.
const char * Label() const
Returns a character string describing the operator.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
int NumCompute_
Contains the number of successful call to Compute().
double RelaxValue_
Relaxation value.
Ifpack_ScalingType enumerable type.
const Epetra_Comm & Comm_
long long IndexBase64() const
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
Teuchos::RefCountPtr< Epetra_Map > IlukRangeMap_
Ifpack_IlukGraph: A class for constructing level filled graphs for use with ILU(k) class precondition...
double Athresh_
absolute threshold
int Initialize()
Initialize the preconditioner, does not touch matrix values.
int InitAllValues(const Epetra_RowMatrix &A, int MaxNumEntries)
int IndexBase() const
Returns the index base for row and column indices for this graph.
Ifpack_CondestType
Ifpack_CondestType: enum to define the type of condition number estimate.
Teuchos::RefCountPtr< Epetra_CrsMatrix > L_
Contains the L factors.
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
double RelaxValue() const
Get ILU(k) relaxation parameter.
Teuchos::RefCountPtr< Epetra_CrsMatrix > U_
Contains the U factors.
virtual double ComputeTime() const
Returns the time spent in Compute().
const Epetra_CrsMatrix & L() const
Returns the address of the L factor associated with this factored matrix.
const Epetra_CrsMatrix & U() const
Returns the address of the L factor associated with this factored matrix.
Teuchos::RefCountPtr< Ifpack_IlukGraph > Graph_
bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized.
const Epetra_RowMatrix & Matrix() const
Returns a reference to the matrix to be preconditioned.
Ifpack_ILU(Epetra_RowMatrix *A)
Constructor.
Ifpack_ILU & operator=(const Ifpack_ILU &RHS)
operator= (should never be used)
Ifpack_ILU: A class for constructing and using an incomplete lower/upper (ILU) factorization of a giv...
long long NumGlobalCols64() const
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
const Epetra_Map * L_RangeMap_
double RelativeThreshold() const
Get relative threshold value.
double AbsoluteThreshold() const
Get absolute threshold value.
int NumApplyInverse_
Contains the number of successful call to ApplyInverse().
int NumInitialize_
Contains the number of successful calls to Initialize().
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
int Multiply(bool Trans, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Teuchos::RefCountPtr< Epetra_RowMatrix > A_
Pointer to the Epetra_RowMatrix to factorize.
virtual int NumMyDiagonals() const
Returns the number of nonzero diagonal values found in matrix.
bool IsInitialized_
If true, the preconditioner has been successfully initialized.
long long NumGlobalRows64() const
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
int Compute()
Compute ILU factors L and U using the specified graph, diagonal perturbation thresholds and relaxatio...
int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
int SetParameters(Teuchos::ParameterList ¶meterlist)
Set parameters using a Teuchos::ParameterList object.
int LevelOfFill() const
Returns the level of fill.
Teuchos::RefCountPtr< Epetra_CrsGraph > U_Graph_
virtual double ApplyInverseFlops() const
Returns the number of flops in the application of the preconditioner.
double ApplyInverseFlops_
Contain sthe number of flops for ApplyInverse().
const Epetra_Vector & D() const
Returns the address of the D factor associated with this factored matrix.
double Condest_
condition number estimate
int LevelOfFill_
Level of fill.
char Label_[160]
Label of this object.
Teuchos::RefCountPtr< Epetra_CrsGraph > CrsGraph_
double InitializeTime_
Contains the time for all successful calls to Initialize().
Epetra_Time Time_
Used for timing issues.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
virtual int NumGlobalBlockDiagonals() const
Returns the number of diagonal entries found in the global input graph.
int NumGlobalCols() const
Returns the number of global matrix columns.
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Epetra_Operator inverse applied to an Epetra_MultiVector X in Y.
double ApplyInverseTime_
Contains the time for all successful calls to ApplyInverse().
virtual int NumInitialize() const
Returns the number of calls to Initialize().
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
Teuchos::RefCountPtr< Epetra_Vector > D_
Diagonal of factors.
int Solve(bool Trans, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_ILU forward/back solve on a Epetra_MultiVector X in Y.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
bool UseTranspose() const
Returns the current UseTranspose setting.
virtual long long NumGlobalBlockDiagonals64() const