FaultFace.hpp
Go to the documentation of this file.
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
26
27namespace Opm {
28
29
30class FaultFace {
31public:
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
40
41 std::vector<size_t>::const_iterator begin() const;
42 std::vector<size_t>::const_iterator end() 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
55private:
56 static void checkCoord(size_t dim , size_t l1 , size_t l2);
58 std::vector<size_t> m_indexList;
59};
60
61
62}
63
64#endif // OPM_PARSER_FAULT_FACE_HPP
Definition: FaultFace.hpp:30
FaceDir::DirEnum getDir() const
FaultFace(size_t nx, size_t ny, size_t nz, size_t I1, size_t I2, size_t J1, size_t J2, size_t K1, size_t K2, FaceDir::DirEnum faceDir)
void serializeOp(Serializer &serializer)
Definition: FaultFace.hpp:49
FaultFace()=default
static FaultFace serializeObject()
bool operator==(const FaultFace &rhs) const
std::vector< size_t >::const_iterator end() const
std::vector< size_t >::const_iterator begin() const
bool operator!=(const FaultFace &rhs) const
Definition: Serializer.hpp:38
DirEnum
Definition: FaceDir.hpp:30
@ XPlus
Definition: FaceDir.hpp:31
Definition: A.hpp:4