51 #ifndef IFPACK2_ILUT_DECL_HPP 52 #define IFPACK2_ILUT_DECL_HPP 54 #include "Ifpack2_ConfigDefs.hpp" 55 #include "Ifpack2_Preconditioner.hpp" 56 #include "Ifpack2_Condest.hpp" 57 #include "Ifpack2_Heap.hpp" 58 #include "Ifpack2_Parameters.hpp" 60 #include <Teuchos_Assert.hpp> 61 #include <Teuchos_RCP.hpp> 62 #include <Teuchos_Time.hpp> 63 #include <Teuchos_TypeNameTraits.hpp> 64 #include <Teuchos_ScalarTraits.hpp> 95 template<
class MatrixType>
98 typename MatrixType::local_ordinal_type,
99 typename MatrixType::global_ordinal_type,
100 typename MatrixType::node_type>
110 TEUCHOS_DEPRECATED
typedef typename MatrixType::scalar_type
Scalar;
117 TEUCHOS_DEPRECATED
typedef typename MatrixType::local_ordinal_type
LocalOrdinal;
124 TEUCHOS_DEPRECATED
typedef typename MatrixType::global_ordinal_type
GlobalOrdinal;
131 TEUCHOS_DEPRECATED
typedef typename MatrixType::node_type
Node;
135 typedef typename Teuchos::ScalarTraits<scalar_type>::magnitudeType
magnitude_type;
138 TEUCHOS_DEPRECATED
typedef typename Teuchos::ScalarTraits<scalar_type>::magnitudeType
magnitudeType;
153 explicit ILUT(
const Teuchos::RCP<
const Tpetra::RowMatrix<scalar_type,local_ordinal_type,global_ordinal_type,node_type> > &A);
172 void setParameters (
const Teuchos::ParameterList& params);
185 return(IsInitialized_);
216 const Tpetra::MultiVector<scalar_type,local_ordinal_type,global_ordinal_type,node_type>& X,
217 Tpetra::MultiVector<scalar_type,local_ordinal_type,global_ordinal_type,node_type>& Y,
218 Teuchos::ETransp mode = Teuchos::NO_TRANS,
219 scalar_type alpha = Teuchos::ScalarTraits<scalar_type>::one(),
220 scalar_type beta = Teuchos::ScalarTraits<scalar_type>::zero())
const;
223 const Teuchos::RCP<const Tpetra::Map<local_ordinal_type,global_ordinal_type,node_type> >& getDomainMap()
const;
226 const Teuchos::RCP<const Tpetra::Map<local_ordinal_type,global_ordinal_type,node_type> >& getRangeMap()
const;
229 bool hasTransposeApply()
const;
243 template<
class DomainScalar,
class RangeScalar>
245 const Tpetra::MultiVector<DomainScalar,local_ordinal_type,global_ordinal_type,node_type>& X,
246 Tpetra::MultiVector<RangeScalar,local_ordinal_type,global_ordinal_type,node_type>& Y,
247 Teuchos::ETransp mode = Teuchos::NO_TRANS,
248 RangeScalar alpha = Teuchos::ScalarTraits<scalar_type>::one(),
249 RangeScalar beta = Teuchos::ScalarTraits<scalar_type>::zero())
const;
253 local_ordinal_type MaxIters = 1550,
254 magnitude_type Tol = 1e-9,
255 const Teuchos::Ptr<
const Tpetra::RowMatrix<scalar_type,local_ordinal_type,global_ordinal_type,node_type> > &Matrix_in = Teuchos::null);
261 const Teuchos::RCP<const Teuchos::Comm<int> > & getComm()
const;
264 Teuchos::RCP<const Tpetra::RowMatrix<scalar_type,local_ordinal_type,global_ordinal_type,node_type> > getMatrix()
const;
267 const Teuchos::RCP<const MatrixType>
getL()
const {
return L_; }
270 const Teuchos::RCP<const MatrixType>
getU()
const {
return U_; }
273 int getNumInitialize()
const;
276 int getNumCompute()
const;
279 int getNumApply()
const;
282 double getInitializeTime()
const;
285 double getComputeTime()
const;
288 double getApplyTime()
const;
292 return(LevelOfFill_);
312 return(DropTolerance_);
316 global_size_t getGlobalNumEntries()
const;
319 size_t getNodeNumEntries()
const;
327 std::string description()
const;
330 void describe(Teuchos::FancyOStream &out,
const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default)
const;
335 typedef Teuchos::ScalarTraits<scalar_type> STS;
336 typedef Teuchos::ScalarTraits<magnitude_type> STM;
337 typedef typename Teuchos::Array<local_ordinal_type>::size_type size_type;
352 const Teuchos::RCP<const Tpetra::RowMatrix<scalar_type,local_ordinal_type,global_ordinal_type,node_type> > A_;
354 Teuchos::RCP<MatrixType> L_;
356 Teuchos::RCP<MatrixType> U_;
362 magnitude_type Athresh_;
363 magnitude_type Rthresh_;
364 magnitude_type RelaxValue_;
365 magnitude_type LevelOfFill_;
366 magnitude_type DropTolerance_;
369 magnitude_type Condest_;
376 double InitializeTime_;
380 mutable double ApplyTime_;
386 mutable int NumApply_;
magnitude_type getDropTolerance() const
Gets the dropping tolerance.
Definition: Ifpack2_ILUT_decl.hpp:311
CondestType
Ifpack2::CondestType: enum to define the type of condition number estimate.
Definition: Ifpack2_CondestType.hpp:50
MatrixType::global_ordinal_type global_ordinal_type
The type of global indices in the input MatrixType.
Definition: Ifpack2_ILUT_decl.hpp:121
Teuchos::ScalarTraits< scalar_type >::magnitudeType magnitude_type
The type of the magnitude (absolute value) of a matrix entry.
Definition: Ifpack2_ILUT_decl.hpp:135
TEUCHOS_DEPRECATED typedef MatrixType::global_ordinal_type GlobalOrdinal
Preserved only for backwards compatibility. Please use "global_ordinal_type".
Definition: Ifpack2_ILUT_decl.hpp:124
ILUT incomplete factorization of a Tpetra sparse matrix.
Definition: Ifpack2_ILUT_decl.hpp:96
magnitude_type getCondEst() const
Returns the computed estimated condition number, or -1.0 if no computed.
Definition: Ifpack2_ILUT_decl.hpp:258
magnitude_type getRelaxValue() const
Get the relax value.
Definition: Ifpack2_ILUT_decl.hpp:306
TEUCHOS_DEPRECATED typedef MatrixType::node_type Node
Preserved only for backwards compatibility. Please use "node_type".
Definition: Ifpack2_ILUT_decl.hpp:131
TEUCHOS_DEPRECATED typedef Teuchos::ScalarTraits< scalar_type >::magnitudeType magnitudeType
Preserved only for backwards compatibility. Please use "magnitude_type".
Definition: Ifpack2_ILUT_decl.hpp:138
magnitude_type getRelativeThreshold() const
Get relative threshold value.
Definition: Ifpack2_ILUT_decl.hpp:301
MatrixType::scalar_type scalar_type
The type of the entries of the input MatrixType.
Definition: Ifpack2_ILUT_decl.hpp:107
Base class for all Ifpack2 preconditioners.
Definition: Ifpack2_Preconditioner.hpp:130
magnitude_type getAbsoluteThreshold() const
Get absolute threshold value.
Definition: Ifpack2_ILUT_decl.hpp:296
magnitude_type getLevelOfFill() const
The level of fill.
Definition: Ifpack2_ILUT_decl.hpp:291
const Teuchos::RCP< const MatrixType > getL() const
Returns a reference to the L factor.
Definition: Ifpack2_ILUT_decl.hpp:267
Definition: Ifpack2_BlockRelaxation_decl.hpp:64
TEUCHOS_DEPRECATED typedef MatrixType::scalar_type Scalar
Preserved only for backwards compatibility. Please use "scalar_type".
Definition: Ifpack2_ILUT_decl.hpp:110
bool isComputed() const
If compute() is completed, this query returns true, otherwise it returns false.
Definition: Ifpack2_ILUT_decl.hpp:199
const Teuchos::RCP< const MatrixType > getU() const
Returns a reference to the U factor.
Definition: Ifpack2_ILUT_decl.hpp:270
Ifpack2::Container: a pure virtual class for creating and solving local linear problems.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:67
bool isInitialized() const
Returns true if the preconditioner has been successfully initialized.
Definition: Ifpack2_ILUT_decl.hpp:184
TEUCHOS_DEPRECATED typedef MatrixType::local_ordinal_type LocalOrdinal
Preserved only for backwards compatibility. Please use "local_ordinal_type".
Definition: Ifpack2_ILUT_decl.hpp:117
cheap estimate
Definition: Ifpack2_CondestType.hpp:51
MatrixType::node_type node_type
The type of the Kokkos Node used by the input MatrixType.
Definition: Ifpack2_ILUT_decl.hpp:128
MatrixType::local_ordinal_type local_ordinal_type
The type of local indices in the input MatrixType.
Definition: Ifpack2_ILUT_decl.hpp:114