Loading...
Searching...
No Matches
SolverConfiguration.H
1#ifndef SolverConfiguration_H
2#define SolverConfiguration_H
3
4#include <labelFwd.H>
5#include <word.H>
6
10class SolverConfiguration
11{
12public:
13 SolverConfiguration() : m_precision(0), m_nBlocks(0), m_centeredOrNot(false) {}
14
15 const Foam::word& get_eigensolver() const { return m_eigensolver; }
16 const int& get_precision() const { return m_precision; }
17 const std::_Ios_Fmtflags& get_outytpe() const { return m_outytpe; }
18 const Foam::label& get_nBlocks() const { return m_nBlocks; }
19 const bool& get_centeredOrNot() const { return m_centeredOrNot; }
20
21 void set_eigensolver(const Foam::word& es) { m_eigensolver = es; }
22 void set_precision(const int& p) { m_precision = p; }
23 void set_outytpe(const std::_Ios_Fmtflags& ot) { m_outytpe = ot; }
24 void set_nBlocks(const Foam::label& nb) { m_nBlocks = nb; }
25 void set_centeredOrNot(const bool& c) { m_centeredOrNot = c; }
26
27private:
28 Foam::word m_eigensolver;
29 int m_precision;
30 std::_Ios_Fmtflags m_outytpe;
31 Foam::label m_nBlocks;
32 bool m_centeredOrNot;
33};
34
35#endif //SolverConfiguration_H