43 #ifndef _IFPACK_CRSRILUK_H_
44 #define _IFPACK_CRSRILUK_H_
46 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48 #warning "The Ifpack package is deprecated"
55 #include "Epetra_ConfigDefs.h"
56 #include "Epetra_CompObject.h"
57 #include "Epetra_Operator.h"
58 #include "Epetra_CrsMatrix.h"
59 #include "Epetra_Object.h"
60 #include "Epetra_MultiVector.h"
61 #include "Epetra_Vector.h"
62 #include "Epetra_Map.h"
67 #include "Teuchos_RefCountPtr.hpp"
253 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES // FIXME LONG LONG
281 bool cerr_warning_if_unused=
false);
336 int Condest(
bool Trans,
double & ConditionNumberEstimate)
const;
352 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
387 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
407 const char *
Label()
const {
return(Epetra_Object::Label());};
488 Teuchos::RefCountPtr<Epetra_MultiVector>* Xout,
489 Teuchos::RefCountPtr<Epetra_MultiVector>* Yout)
const;
500 Teuchos::RefCountPtr<Epetra_CrsMatrix>
L_;
501 Teuchos::RefCountPtr<Epetra_CrsMatrix>
U_;
504 Teuchos::RefCountPtr<Epetra_Vector>
D_;
516 mutable Teuchos::RefCountPtr<Epetra_MultiVector>
OverlapX_;
517 mutable Teuchos::RefCountPtr<Epetra_MultiVector>
OverlapY_;
518 mutable Teuchos::RefCountPtr<Epetra_MultiVector>
VbrX_;
519 mutable Teuchos::RefCountPtr<Epetra_MultiVector>
VbrY_;
int Multiply(bool Trans, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of multiplying U, D and L in that order on an Epetra_MultiVector X in Y...
int GenerateXY(bool Trans, const Epetra_MultiVector &Xin, const Epetra_MultiVector &Yin, Teuchos::RefCountPtr< Epetra_MultiVector > *Xout, Teuchos::RefCountPtr< Epetra_MultiVector > *Yout) const
Teuchos::RefCountPtr< const Epetra_Map > L_RangeMap_
double GetRelaxValue()
Get RILU(k) relaxation parameter.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
int BlockMap2PointMap(const Epetra_BlockMap &BlockMap, Teuchos::RefCountPtr< Epetra_Map > *PointMap)
Ifpack_CrsRiluk: A class for constructing and using an incomplete lower/upper (ILU) factorization of ...
int Condest(bool Trans, double &ConditionNumberEstimate) const
Returns the maximum over all the condition number estimate for each local ILU set of factors...
void SetFactored(bool Flag)
long long NumGlobalRows64() const
Epetra_CombineMode GetOverlapMode()
Get overlap mode type.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
Teuchos::RefCountPtr< Epetra_CrsGraph > U_Graph_
Teuchos::RefCountPtr< const Epetra_Map > U_DomainMap_
const Epetra_CrsMatrix & L() const
Returns the address of the L factor associated with this factored matrix.
Teuchos::RefCountPtr< Epetra_MultiVector > OverlapY_
const char * Label() const
Returns a character string describing the operator.
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
void SetOverlapMode(Epetra_CombineMode OverlapMode)
Set overlap mode type.
Ifpack_IlukGraph: A class for constructing level filled graphs for use with ILU(k) class precondition...
int NumGlobalCols() const
Returns the number of global matrix columns.
int BlockGraph2PointGraph(const Epetra_CrsGraph &BG, Epetra_CrsGraph &PG, bool Upper)
void SetAbsoluteThreshold(double Athresh)
Set absolute threshold value.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
int SetAllocated(bool Flag)
virtual long long NumGlobalBlockDiagonals64() const
void SetValuesInitialized(bool Flag)
void SetRelativeThreshold(double Rthresh)
Set relative threshold value.
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...
Teuchos::RefCountPtr< Epetra_CrsGraph > L_Graph_
Teuchos::RefCountPtr< Epetra_Map > IlukDomainMap_
long long NumGlobalCols64() const
Ifpack_ScalingType enumerable type.
Teuchos::RefCountPtr< Epetra_CrsMatrix > U_
int InitAllValues(const Epetra_RowMatrix &A, int MaxNumEntries)
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
int SetParameters(const Teuchos::ParameterList ¶meterlist, bool cerr_warning_if_unused=false)
Set parameters using a Teuchos::ParameterList object.
const Ifpack_IlukGraph & Graph_
Teuchos::RefCountPtr< Epetra_Map > IlukRowMap_
int NumMyCols() const
Returns the number of local matrix columns.
Teuchos::RefCountPtr< Epetra_MultiVector > OverlapX_
long long IndexBase64() const
int NumGlobalRows() const
Returns the number of global matrix rows.
int InitValues(const Epetra_CrsMatrix &A)
Initialize L and U with values from user matrix A.
const Epetra_CrsMatrix & U() const
Returns the address of the L factor associated with this factored matrix.
double GetAbsoluteThreshold()
Get absolute threshold value.
std::ostream & operator<<(std::ostream &os, const Ifpack_Container &obj)
virtual int NumGlobalBlockDiagonals() const
Returns the number of diagonal entries found in the global input graph.
int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Epetra_Operator applied to a Epetra_MultiVector X in Y.
Teuchos::RefCountPtr< Epetra_CrsMatrix > L_
int Solve(bool Trans, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_CrsRiluk forward/back solve on a Epetra_MultiVector X in Y (works for ...
int IndexBase() const
Returns the index base for row and column indices for this graph.
friend std::ostream & operator<<(std::ostream &os, const Ifpack_CrsRiluk &A)
<< operator will work for Ifpack_CrsRiluk.
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.
const Epetra_Comm & Comm_
bool Factored() const
If factor is completed, this query returns true, otherwise it returns false.
int NumMyRows() const
Returns the number of local matrix rows.
bool ValuesInitialized() const
If values have been initialized, this query returns true, otherwise it returns false.
void SetRelaxValue(double RelaxValue)
Set RILU(k) relaxation parameter.
const Epetra_Vector & D() const
Returns the address of the D factor associated with this factored matrix.
bool UseTranspose() const
Returns the current UseTranspose setting.
Teuchos::RefCountPtr< Epetra_MultiVector > VbrY_
long long NumGlobalNonzeros64() const
double GetRelativeThreshold()
Get relative threshold value.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
Teuchos::RefCountPtr< Epetra_Vector > D_
Teuchos::RefCountPtr< Epetra_MultiVector > VbrX_
virtual int NumMyBlockDiagonals() const
Returns the number of diagonal entries found in the local input graph.
virtual ~Ifpack_CrsRiluk()
Ifpack_CrsRiluk Destructor.
virtual int NumMyDiagonals() const
Returns the number of nonzero diagonal values found in matrix.
Epetra_CombineMode OverlapMode_
Teuchos::RefCountPtr< Epetra_Map > IlukRangeMap_
int Factor()
Compute ILU factors L and U using the specified graph, diagonal perturbation thresholds and relaxatio...
const Ifpack_IlukGraph & Graph() const
returns the address of the Ifpack_IlukGraph associated with this factored matrix. ...
Ifpack_CrsRiluk(const Ifpack_IlukGraph &Graph_in)
Ifpack_CrsRiluk constuctor with variable number of indices per row.