46#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48#warning "The Ifpack package is deprecated"
52#include "Ifpack_ConfigDefs.h"
53#include "Ifpack_CondestType.h"
55#include "Ifpack_Preconditioner.h"
56#include "Epetra_Vector.h"
57#include "Epetra_CrsMatrix.h"
58#include "Epetra_RowMatrix.h"
59#include "Epetra_Time.h"
60#include "Teuchos_RefCountPtr.hpp"
118 int SetParameter(
const std::string ,
const int )
122 int SetParameter(
const std::string ,
const double )
139 return(IsInitialized_);
192 double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
193 const int MaxIters = 1550,
194 const double Tol = 1e-9,
211#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
214 long long NumGlobalNonzeros64()
const {
return(
U().NumGlobalNonzeros64()+
D().GlobalLength64());};
236 int SetUseTranspose(
bool UseTranspose_in) {UseTranspose_ = UseTranspose_in;
return(0);};
257 const char* Label()
const
262 int SetLabel(
const char* Label_in)
264 strcpy(Label_,Label_in);
269 virtual std::ostream&
Print(std::ostream& os)
const;
274 return(NumInitialize_);
286 return(NumApplyInverse_);
292 return(InitializeTime_);
298 return(ComputeTime_);
304 return(ApplyInverseTime_);
315 return(ComputeFlops_);
320 return(ApplyInverseFlops_);
326 double LevelOfFill()
const
331 double AbsoluteThreshold()
const
336 double RelativeThreshold()
const
341 double DropTolerance()
const
346 Teuchos::RefCountPtr<Epetra_RowMatrix> A_;
348 Teuchos::RefCountPtr<Epetra_CrsMatrix> U_;
349 Teuchos::RefCountPtr<Epetra_Vector> D_;
371 mutable int NumApplyInverse_;
374 double InitializeTime_;
378 mutable double ApplyInverseTime_;
383 double ComputeFlops_;
385 mutable double ApplyInverseFlops_;
Ifpack_ScalingType enumerable type.
Ifpack_IC: A class for constructing and using an incomplete Cholesky factorization of a given Epetra_...
virtual double InitializeTime() const
Returns the time spent in Initialize().
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
double GetRelativeThreshold()
Get relative threshold value.
bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized, false otherwise.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
int Initialize()
Initialize L and U with values from user matrix A.
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
void SetAbsoluteThreshold(double Athresh)
Set absolute threshold value.
virtual int NumCompute() const
Returns the number of calls to Compute().
int Compute()
Compute IC factor U using the specified graph, diagonal perturbation thresholds and relaxation parame...
bool UseTranspose() const
Returns the current UseTranspose setting.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
virtual double ApplyInverseFlops() const
Returns the number of flops in the application of the preconditioner.
double Condest() const
Returns the computed condition number estimate, or -1.0 if not computed.
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_IC forward/back solve on a Epetra_MultiVector X in Y.
void SetRelativeThreshold(double Rthresh)
Set relative threshold value.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
const Epetra_CrsMatrix & U() const
Returns the address of the U factor associated with this factored matrix.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
virtual ~Ifpack_IC()
Ifpack_IC Destructor.
const Epetra_RowMatrix & Matrix() const
Returns a pointer to the matrix to be preconditioned.
double GetAbsoluteThreshold()
Get absolute threshold value.
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
virtual std::ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
const Epetra_Vector & D() const
Returns the address of the D factor associated with this factored matrix.
virtual double ComputeTime() const
Returns the time spent in Compute().
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.