ConformingBlockBuilder.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_REFINEMENT_CONFORMINGBLOCKBUILDER_HEADER_INCLUDED
20#define OPM_GRID_REFINEMENT_CONFORMINGBLOCKBUILDER_HEADER_INCLUDED
21
24
25#include <array>
26#include <memory>
27#include <vector>
28
29namespace Opm
30{
31namespace Refinement
32{
33
60{
61public:
73 ConformingBlockBuilder(const std::array<int,3>& parentDims,
74 std::vector<double> coord,
75 std::vector<double> zcorn,
76 std::vector<int> actnum,
77 bool edgeConformal = false);
78
82 explicit ConformingBlockBuilder(std::shared_ptr<const RetainedCornerPointInput> input);
83
84 void build(Dune::CpGrid& grid,
85 const std::vector<BlockRefinement>& requests) override;
86
87private:
88 std::shared_ptr<const RetainedCornerPointInput> input_;
89};
90
91} // namespace Refinement
92} // namespace Opm
93
94#endif // OPM_GRID_REFINEMENT_CONFORMINGBLOCKBUILDER_HEADER_INCLUDED
[ provides Dune::Grid ]
Definition: CpGrid.hpp:206
Definition: RefinementBuilder.hpp:47
Definition: ConformingBlockBuilder.hpp:60
void build(Dune::CpGrid &grid, const std::vector< BlockRefinement > &requests) override
ConformingBlockBuilder(const std::array< int, 3 > &parentDims, std::vector< double > coord, std::vector< double > zcorn, std::vector< int > actnum, bool edgeConformal=false)
ConformingBlockBuilder(std::shared_ptr< const RetainedCornerPointInput > input)
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.hpp:26