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 FAULT_FACE_HPP_
20 #define FAULT_FACE_HPP_
21 
22 #include <cstddef>
23 #include <vector>
24 
26 
27 namespace Opm {
28 
29 
30 class FaultFace {
31 public:
32  FaultFace(size_t nx , size_t ny , size_t nz,
33  size_t I1 , size_t I2,
34  size_t J1 , size_t J2,
35  size_t K1 , size_t K2,
36  FaceDir::DirEnum faceDir);
37 
38  std::vector<size_t>::const_iterator begin() const;
39  std::vector<size_t>::const_iterator end() const;
40  FaceDir::DirEnum getDir() const;
41 
42 private:
43  static void checkCoord(size_t dim , size_t l1 , size_t l2);
44  FaceDir::DirEnum m_faceDir;
45  std::vector<size_t> m_indexList;
46 };
47 
48 
49 }
50 
51 #endif
std::vector< size_t >::const_iterator begin() const
Definition: FaultFace.hpp:30
Definition: Deck.hpp:29
DirEnum
Definition: FaceDir.hpp:30
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)
std::vector< size_t >::const_iterator end() const
FaceDir::DirEnum getDir() const