opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
FaultFace.hpp
1
/*
2
Copyright 2014 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
MERCHANTABILITY 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
#ifndef OPM_PARSER_FAULT_FACE_HPP
20
#define OPM_PARSER_FAULT_FACE_HPP
21
22
#include <cstddef>
23
#include <vector>
24
25
#include <opm/input/eclipse/EclipseState/Grid/FaceDir.hpp>
26
27
namespace
Opm
{
28
29
30
class
FaultFace {
31
public
:
32
FaultFace() =
default
;
33
FaultFace(
size_t
nx ,
size_t
ny ,
size_t
nz,
34
size_t
I1 ,
size_t
I2,
35
size_t
J1 ,
size_t
J2,
36
size_t
K1 ,
size_t
K2,
37
FaceDir::DirEnum faceDir);
38
39
static
FaultFace serializationTestObject();
40
41
std::vector<size_t>::const_iterator begin()
const
;
42
std::vector<size_t>::const_iterator end()
const
;
43
FaceDir::DirEnum getDir()
const
;
44
45
bool
operator==(
const
FaultFace& rhs )
const
;
46
bool
operator!=(
const
FaultFace& rhs )
const
;
47
48
template
<
class
Serializer>
49
void
serializeOp(
Serializer
& serializer)
50
{
51
serializer(m_faceDir);
52
serializer(m_indexList);
53
}
54
55
private
:
56
static
void
checkCoord(
size_t
dim ,
size_t
l1 ,
size_t
l2);
57
FaceDir::DirEnum m_faceDir = FaceDir::XPlus;
58
std::vector<size_t> m_indexList;
59
};
60
61
62
}
63
64
#endif
// OPM_PARSER_FAULT_FACE_HPP
Opm::Serializer
Class for (de-)serializing.
Definition
Serializer.hpp:94
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
EclipseState
Grid
FaultFace.hpp
Generated by
1.17.0