GrdeclRefinement.hpp
Go to the documentation of this file.
1/*
2 Copyright 2026 Equinor 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_GRID_GRDECL_REFINEMENT_HEADER_INCLUDED
20#define OPM_GRID_GRDECL_REFINEMENT_HEADER_INCLUDED
21
23
24#include <array>
25#include <cstddef>
26#include <vector>
27
28namespace Opm
29{
30namespace Refinement
31{
32
37{
38 std::array<std::size_t,3> dims{};
39 std::vector<double> coord;
40 std::vector<double> zcorn;
41 std::vector<int> actnum;
42
44 std::array<int,3> intDims() const;
45};
46
70RefinedBlockGrdecl refineBlock(const std::array<int,3>& parentDims,
71 const double* coord,
72 const double* zcorn,
73 const int* actnum,
74 const BlockRefinement& request);
75
76} // namespace Refinement
77} // namespace Opm
78
79#endif // OPM_GRID_GRDECL_REFINEMENT_HEADER_INCLUDED
RefinedBlockGrdecl refineBlock(const std::array< int, 3 > &parentDims, const double *coord, const double *zcorn, const int *actnum, const BlockRefinement &request)
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.hpp:26
Definition: RefinementRequest.hpp:57
Definition: GrdeclRefinement.hpp:37
std::vector< int > actnum
Definition: GrdeclRefinement.hpp:41
std::array< int, 3 > intDims() const
dims as int, the type of the dimensions of a grdecl and of a grid.
std::vector< double > zcorn
Definition: GrdeclRefinement.hpp:40
std::array< std::size_t, 3 > dims
Definition: GrdeclRefinement.hpp:38
std::vector< double > coord
Definition: GrdeclRefinement.hpp:39