Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
LinearSolverConfig.h
Go to the documentation of this file.
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2014 Sandia Corporation. */
3 /* This software is released under the license detailed */
4 /* in the file, LICENSE, which is located in the top-level Nalu */
5 /* directory structure */
6 /*------------------------------------------------------------------------*/
7 
8 
9 #ifndef LinearSolverConfig_h
10 #define LinearSolverConfig_h
11 
12 #include <string>
13 #include <Teuchos_ParameterList.hpp>
14 #include <Teuchos_RCP.hpp>
15 
16 namespace YAML {
17 class Node;
18 }
19 
20 namespace sierra{
21 namespace nalu{
22 
24  public:
27  std::string name() const;
28  void load(const YAML::Node & node);
29  const Teuchos::RCP<Teuchos::ParameterList> & params() const;
30  const Teuchos::RCP<Teuchos::ParameterList> & paramsPrecond() const;
31  bool getWriteMatrixFiles() { return writeMatrixFiles_; }
32  bool getSummarizeMueluTimer() { return summarizeMueluTimer_; }
33  bool use_MueLu() const {return useMueLu_;}
34  std::string & muelu_xml_file() {return muelu_xml_file_;}
35  bool recomputePreconditioner() { return recomputePreconditioner_; }
36  bool reusePreconditioner() { return reusePreconditioner_; }
37  std::string get_method() {return method_;}
38  std::string preconditioner_type(){ return preconditionerType_;}
39 
40  private:
41  std::string name_;
42  std::string method_;
43  std::string precond_;
44  Teuchos::RCP<Teuchos::ParameterList> params_;
45  Teuchos::RCP<Teuchos::ParameterList> paramsPrecond_;
46 
47  std::string muelu_xml_file_;
48  bool useMueLu_;
53  std::string preconditionerType_;
54 };
55 
56 } // namespace nalu
57 } // namespace Sierra
58 
59 #endif
bool reusePreconditioner_
Definition: LinearSolverConfig.h:50
std::string method_
Definition: LinearSolverConfig.h:42
bool useMueLu_
Definition: LinearSolverConfig.h:48
Definition: ABLForcingAlgorithm.C:26
std::string name_
Definition: LinearSolverConfig.h:41
std::string & muelu_xml_file()
Definition: LinearSolverConfig.h:34
Teuchos::RCP< Teuchos::ParameterList > paramsPrecond_
Definition: LinearSolverConfig.h:45
bool recomputePreconditioner_
Definition: LinearSolverConfig.h:49
std::string muelu_xml_file_
Definition: LinearSolverConfig.h:47
std::string get_method()
Definition: LinearSolverConfig.h:37
bool summarizeMueluTimer_
Definition: LinearSolverConfig.h:52
bool recomputePreconditioner()
Definition: LinearSolverConfig.h:35
Teuchos::RCP< Teuchos::ParameterList > params_
Definition: LinearSolverConfig.h:44
std::string precond_
Definition: LinearSolverConfig.h:43
Definition: NaluParsing.C:400
bool getSummarizeMueluTimer()
Definition: LinearSolverConfig.h:32
bool getWriteMatrixFiles()
Definition: LinearSolverConfig.h:31
std::string preconditionerType_
Definition: LinearSolverConfig.h:53
Tpetra::Map< LocalOrdinal, GlobalOrdinal >::node_type Node
Definition: LinearSolver.h:32
Definition: LinearSolverConfig.h:23
std::string preconditioner_type()
Definition: LinearSolverConfig.h:38
bool reusePreconditioner()
Definition: LinearSolverConfig.h:36
bool writeMatrixFiles_
Definition: LinearSolverConfig.h:51
bool use_MueLu() const
Definition: LinearSolverConfig.h:33