Regdims.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 Statoil ASA
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANREGILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef REGDIMS_HPP
21 #define REGDIMS_HPP
22 
23 /*
24  The Regdims class is a small utility class designed to hold on to
25  the values from the REGDIMS keyword.
26 */
27 
28 #include <opm/parser/eclipse/Parser/ParserKeywords.hpp>
29 
30 namespace Opm {
31  class Regdims {
32  public:
33 
34  Regdims() :
35  m_NTFIP( ParserKeywords::REGDIMS::NTFIP::defaultValue ),
36  m_NMFIPR( ParserKeywords::REGDIMS::NMFIPR::defaultValue ),
37  m_NRFREG( ParserKeywords::REGDIMS::NRFREG::defaultValue ),
38  m_NTFREG( ParserKeywords::REGDIMS::NTFREG::defaultValue ),
39  m_NPLMIX( ParserKeywords::REGDIMS::NPLMIX::defaultValue )
40  { }
41 
42  Regdims(size_t ntfip , size_t nmfipr , size_t nrfregr , size_t ntfreg , size_t nplmix) :
43  m_NTFIP( ntfip ),
44  m_NMFIPR( nmfipr ),
45  m_NRFREG( nrfregr ),
46  m_NTFREG( ntfreg ),
47  m_NPLMIX( nplmix )
48  {}
49 
50  size_t getNTFIP() const {
51  return m_NTFIP;
52  }
53 
54 
55  size_t getNMFIPR() const {
56  return m_NMFIPR;
57  }
58 
59 
60  size_t getNRFREG() const {
61  return m_NRFREG;
62  }
63 
64 
65  size_t getNTFREG() const {
66  return m_NTFREG;
67  }
68 
69 
70  size_t getNPLMIX() const {
71  return m_NPLMIX;
72  }
73 
74 
75 
76 
77  private:
78  size_t m_NTFIP;
79  size_t m_NMFIPR;
80  size_t m_NRFREG;
81  size_t m_NTFREG;
82  size_t m_NPLMIX;
83  };
84 }
85 
86 
87 #endif
size_t getNRFREG() const
Definition: Regdims.hpp:60
Definition: Deck.hpp:29
size_t getNTFIP() const
Definition: Regdims.hpp:50
Regdims()
Definition: Regdims.hpp:34
size_t getNTFREG() const
Definition: Regdims.hpp:65
Regdims(size_t ntfip, size_t nmfipr, size_t nrfregr, size_t ntfreg, size_t nplmix)
Definition: Regdims.hpp:42
size_t getNMFIPR() const
Definition: Regdims.hpp:55
Definition: Regdims.hpp:31
size_t getNPLMIX() const
Definition: Regdims.hpp:70