20#ifndef OPM_PARSER_NNC_HPP
21#define OPM_PARSER_NNC_HPP
28#include <opm/common/OpmLog/KeywordLocation.hpp>
36 NNCdata(
size_t c1,
size_t c2,
double t)
37 : cell1(c1), cell2(c2), trans(t)
41 bool operator==(
const NNCdata& data)
const
43 return cell1 == data.cell1 &&
44 cell2 == data.cell2 &&
48 template<
class Serializer>
58 bool operator<(
const NNCdata& other)
const
60 return std::tie(this->cell1, this->cell2) < std::tie(other.cell1, other.cell2);
108 static NNC serializationTestObject();
110 bool addNNC(
const size_t cell1,
const size_t cell2,
const double trans);
112 const std::vector<NNCdata>&
input()
const {
return m_input; }
114 const std::vector<NNCdata>&
edit()
const {
return m_edit; }
116 const std::vector<NNCdata>&
editr()
const {
return m_editr; }
122 bool operator==(
const NNC& data)
const;
124 template<
class Serializer>
130 serializer(m_nnc_location);
131 serializer(m_edit_location);
132 serializer(m_editr_location);
137 void load_input(
const EclipseGrid& grid,
const Deck& deck);
138 void load_edit(
const EclipseGrid& grid,
const Deck& deck);
139 void load_editr(
const EclipseGrid& grid,
const Deck& deck);
140 void add_edit(
const NNCdata& edit_node);
143 std::vector<NNCdata> m_input;
145 std::vector<NNCdata> m_edit;
147 std::vector<NNCdata> m_editr;
148 std::optional<KeywordLocation> m_nnc_location;
149 std::optional<KeywordLocation> m_edit_location;
150 std::optional<KeywordLocation> m_editr_location;
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition EclipseGrid.hpp:55
Definition KeywordLocation.hpp:27
const std::vector< NNCdata > & input() const
Get the combined information from NNC.
Definition NNC.hpp:112
const std::vector< NNCdata > & editr() const
Get the information from EDITNNCR keyword.
Definition NNC.hpp:116
const std::vector< NNCdata > & edit() const
Get the information from EDITNNC keyword.
Definition NNC.hpp:114
Class for (de-)serializing.
Definition Serializer.hpp:84
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30