Files
opm-common/opm/parser/eclipse/EclipseState/Tables/Eqldims.hpp
Jørgen Kvalsvik 04900a4bb6 ParserKeywords.hpp -> ParserKeywordsX.hpp
To reduce compiler stress and be more explicit w.r.t. dependencies, all
files now includes only the keywords they need, instead of the
collection of all files.
2016-01-21 09:25:58 +01:00

84 lines
2.3 KiB
C++

/*
Copyright (C) 2015 Statoil ASA
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EQLDIMS_HPP
#define EQLDIMS_HPP
/*
The Eqldims class is a small utility class designed to hold on to
the values from the EQLDIMS keyword.
*/
#include <opm/parser/eclipse/Parser/ParserKeywords/E.hpp>
namespace Opm {
class Eqldims {
public:
Eqldims() :
m_ntequl( ParserKeywords::EQLDIMS::NTEQUL::defaultValue ),
m_depth_nodes_p( ParserKeywords::EQLDIMS::DEPTH_NODES_P::defaultValue ),
m_depth_nodes_tab( ParserKeywords::EQLDIMS::DEPTH_NODES_TAB::defaultValue ),
m_nttrvd( ParserKeywords::EQLDIMS::NTTRVD::defaultValue ),
m_nstrvd( ParserKeywords::EQLDIMS::NSTRVD::defaultValue )
{ }
Eqldims( size_t ntequl , size_t depth_nodes_p , size_t depth_nodes_tab , size_t nttrvd , size_t nstrvd) :
m_ntequl( ntequl ),
m_depth_nodes_p( depth_nodes_p ),
m_depth_nodes_tab( depth_nodes_tab ),
m_nttrvd( nttrvd ),
m_nstrvd( nstrvd )
{ }
size_t getNumEquilRegions() const
{
return m_ntequl;
}
size_t getNumDepthNodesP() const
{
return m_depth_nodes_p;
}
size_t getNumDepthNodesTable() const
{
return m_depth_nodes_tab;
}
size_t getNumTracerTables() const
{
return m_nttrvd;
}
size_t getNumDepthNodesTracer() const
{
return m_nstrvd;
}
private:
size_t m_ntequl , m_depth_nodes_p , m_depth_nodes_tab , m_nttrvd , m_nstrvd;
};
}
#endif