Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Amesos_Control.h
Go to the documentation of this file.
1 #ifndef AMESOS_CONTROL_H
2 #define AMESOS_CONTROL_H
3 
4 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
5 #ifdef __GNUC__
6 #warning "The Amesos package is deprecated"
7 #endif
8 #endif
9 
11 using namespace Teuchos;
23 {
24 public:
27  {
28  AddToDiag_ = 0.0;
29  AddZeroToDiag_ = false;
30  rcond_threshold_ = 1e-12;
31  refactorize_ = false;
32  MaxProcesses_ = -1;
33  ScaleMethod_ = 0;
34  Reindex_ = 0;
35  }
36 
39 
40  void SetControlParameters( const Teuchos::ParameterList &ParameterList ) ;
41 
43  double AddToDiag_;
44 
45 
46  bool refactorize_; // if true, and if the Symbolic and Numeric
47  // objects have already been created, then
48  // attempt to "refactorize" (factor the matrix
49  // with no changes to the pivot order since the
50  // last call the klu_btf_factor).
51 
54  double rcond_threshold_; // if we refactorize, the factorization may suffer
55  // in numeric quality. We compute rcond =
56  // min (abs (diag (U))) / max (abs (diag (U))).
57  // If this ratio is <= rcond_threshold_, then
58  // the "refactorization" is scrapped, and we factor
59  // with full partial pivoting instead.
60 
61  int ScaleMethod_; // most methods (KLU, UMFPACK, Mumps, ...) can scale
62  // the input matrix prior to factorization. This can
63  // improve pivoting, reduce fill-in, and lead to a
64  // better quality factorization. The options are:
65  // 0: no scaling
66  // 1: use the default method for the specific package
67  // 2: use the method's 1st alternative (if it has one)
68  // 3: use the method's 2nd alternative, and so on.
69  //
70  // Amesos_Klu is, at present, the only code which implements this
71 
74 
76 
83 
84  int MaxProcesses_; // default is -1 ; If positive, distribute
85  // problem over MaxProcesses
88  bool Reindex_ ;
89 
90 
91 };
92 
93 #endif
Amesos_Control: Container for some control variables.
double rcond_threshold_
If error is greater than this value, perform symbolic and numeric factorization with full partial piv...
bool AddZeroToDiag_
Adds zero to diagonal of redistributed matrix (some solvers choke on a matrix with a partly empty dia...
int MatrixProperty_
Set the matrix property.
Amesos_Control()
Default constructor.
bool Reindex_
If true, the Amesos class should reindex the matrix to standard indexing (i.e.
~Amesos_Control()
Default destructor.
double AddToDiag_
Add this value to the diagonal.