ecl_box.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'ecl_box.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT 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 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19#ifndef ERT_ECL_BOX_H
20#define ERT_ECL_BOX_H
21
22#include <vector>
23#include <ert/ecl/ecl_grid.hpp>
24
25
26namespace ecl {
27
28 class ecl_box {
29 public:
30 ecl_box(const ecl_grid_type * grid, int i1, int i2, int j1, int j2, int k1, int k2);
31 const std::vector<int>& active_list() const;
32 private:
33 const ecl_grid_type * grid;
34
35 int i1,i2,j1,j2,k1,k2;
36 std::vector<int> active_index_list;
37 std::vector<int> global_index_list;
38 };
39
40}
41#endif
ecl_grid_struct ecl_grid_type
Definition: ECLGraph.hpp:43
Definition: ecl_box.hpp:28
const std::vector< int > & active_list() const
ecl_box(const ecl_grid_type *grid, int i1, int i2, int j1, int j2, int k1, int k2)
Definition: ecl_box.hpp:26