LifeV
MLPreconditioner.cpp
Go to the documentation of this file.
1 /*
2  * MlPreconditioner.cpp
3  *
4  * Created on: Oct 8, 2011
5  * Author: uvilla
6  */
7 
8 #include <ml_MultiLevelPreconditioner.h>
9 #include <ml_epetra.h>
10 
12 
13 namespace LifeV {
14 
15 namespace Operators {
16 
19  { }
20 
22 { }
23 
25 {
26  ASSERT_PRE(M_pList.isSublist("options"), "RowMatrixPreconditioner::SetParameterList(): pList must have a options subList");
27 
28  ML_Epetra::MultiLevelPreconditioner * prec;
29 
30  prec = new ML_Epetra::MultiLevelPreconditioner(*M_rowMatrix, false);
31  prec->SetParameterList(M_pList.sublist("options"));
32 
33  ML_CHK_ERR(prec->ComputePreconditioner());
34 
35  M_prec.reset(prec);
36 
37  return 0;
38 }
39 
40 
41 } /*end Operators namespace */
42 
43 } /*end LifeV namespace */
void updateInverseJacobian(const UInt &iQuadPt)
#define ASSERT_PRE(X, A)
Definition: LifeAssert.hpp:96
int myCompute()
Abstract method myCompute implemented by the derived class.
Interface to the ML preconditioners in Trilinos.
Abstract class to construct preconditioners from a matrix in Epetra_CsrFormat.