LevelGridAssembler.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_LEVELGRIDASSEMBLER_HEADER_INCLUDED
20#define OPM_GRID_REFINEMENT_LEVELGRIDASSEMBLER_HEADER_INCLUDED
21
24
25#include <array>
26#include <memory>
27#include <vector>
28
29namespace Dune
30{
31namespace cpgrid
32{
33class CpGridData;
34}
35}
36
37namespace Opm
38{
39namespace Refinement
40{
41
73std::shared_ptr<Dune::cpgrid::CpGridData>
75 const std::array<int,3>& parentDims,
76 const double* coord,
77 const double* zcorn,
78 const int* actnum,
79 const BlockRefinement& request,
80 int levelIndex,
81 int parentLevel,
82 const std::vector<std::shared_ptr<Dune::cpgrid::CpGridData>>& levelStorage,
83 RefinedBlockGrdecl* outRefined = nullptr,
84 bool pinchActive = false);
85
91std::shared_ptr<Dune::cpgrid::CpGridData>
93 int levelIndex,
94 const std::vector<std::shared_ptr<Dune::cpgrid::CpGridData>>& levelStorage);
95
96} // namespace Refinement
97} // namespace Opm
98
99#endif // OPM_GRID_REFINEMENT_LEVELGRIDASSEMBLER_HEADER_INCLUDED
Struct that hods all the data needed to represent a Cpgrid.
Definition: CpGridData.hpp:144
The namespace Dune is the main namespace for all Dune code.
Definition: common/CartesianIndexMapper.hpp:10
std::shared_ptr< Dune::cpgrid::CpGridData > assembleBlockLevelGrid(const Dune::cpgrid::CpGridData &parentGrid, const std::array< int, 3 > &parentDims, const double *coord, const double *zcorn, const int *actnum, const BlockRefinement &request, int levelIndex, int parentLevel, const std::vector< std::shared_ptr< Dune::cpgrid::CpGridData > > &levelStorage, RefinedBlockGrdecl *outRefined=nullptr, bool pinchActive=false)
std::shared_ptr< Dune::cpgrid::CpGridData > assembleEmptyLevelGrid(const BlockRefinement &request, int levelIndex, const std::vector< std::shared_ptr< Dune::cpgrid::CpGridData > > &levelStorage)
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.hpp:26
Definition: RefinementRequest.hpp:57
Definition: GrdeclRefinement.hpp:37