Files
opm-common/opm/parser/eclipse/EclipseState/Grid/NNC.hpp
Jørgen Kvalsvik 4b98943665 Replaces unecessary header includes with fwd decls
Every header is self-contained and includes only what it must to
function, relying on users include what they need in source files,
adopting a pay-what-you-use model (in particular for internal
dependencies).
2016-01-26 13:23:22 +01:00

59 lines
1.3 KiB
C++

/*
Copyright 2015 IRIS
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 NNC_HPP
#define NNC_HPP
#include <cstddef>
#include <memory>
#include <vector>
namespace Opm
{
class Deck;
class EclipseGrid;
struct NNCdata {
size_t cell1;
size_t cell2;
double trans;
};
class NNC
{
public:
/// Construct from input deck.
NNC();
NNC(std::shared_ptr< const Deck > deck, std::shared_ptr< const EclipseGrid > eclipseGrid);
void addNNC(const size_t cell1, const size_t cell2, const double trans);
const std::vector<NNCdata>& nncdata() const { return m_nnc; }
size_t numNNC() const;
bool hasNNC() const;
private:
std::vector<NNCdata> m_nnc;
};
} // namespace Opm
#endif // NNC_HPP