Trilinos based (stochastic) FEM solvers
newtonRaphson.hpp
Go to the documentation of this file.
1 /*
2 Brian Staber (brian.staber@gmail.com)
3 */
4 
5 #ifndef NEWTONRAPHSON_HPP
6 #define NEWTONRAPHSON_HPP
7 
9 #include "Teuchos_RCP.hpp"
10 #include "Ifpack.h"
11 #include "Ifpack_AdditiveSchwarz.h"
12 #include "BelosLinearProblem.hpp"
13 #include "BelosBlockGmresSolMgr.hpp"
14 #include "BelosEpetraAdapter.hpp"
15 #include <BelosSolverFactory.hpp>
16 #include "BelosBlockGmresSolMgr.hpp"
17 #include "Teuchos_StandardCatchMacros.hpp"
18 #include "Teuchos_ParameterList.hpp"
19 #include "Teuchos_XMLParameterListCoreHelpers.hpp"
20 #include "Stratimikos_DefaultLinearSolverBuilder.hpp"
21 
23 {
24 public:
25 
26  Epetra_Comm * Comm;
27  Epetra_Vector * x;
28 
30  Teuchos::ParameterList * Krylov;
31 
34 
35  newtonRaphson(nonLinearFiniteElementProblem & Interface, Teuchos::ParameterList & Parameters);
37 
38  int Solve_with_Aztec(bool print);
39  int Solve_with_Stratimikos(Teuchos::RCP<Teuchos::ParameterList> solverBuilderSL);
40  int print_newton_solution(std::string fileName);
41  void Initialization();
42  void setInitialization(Epetra_Vector & init);
43  void setParameters(Teuchos::ParameterList & Parameters);
44 };
45 #endif
int Solve_with_Aztec(bool print)
Teuchos::ParameterList * Krylov
void setInitialization(Epetra_Vector &init)
Epetra_Vector * x
nonLinearFiniteElementProblem * interface
void setParameters(Teuchos::ParameterList &Parameters)
newtonRaphson(nonLinearFiniteElementProblem &Interface, Teuchos::ParameterList &Parameters)
int print_newton_solution(std::string fileName)
Epetra_Comm * Comm
int Solve_with_Stratimikos(Teuchos::RCP< Teuchos::ParameterList > solverBuilderSL)
double pressure_load