12#ifndef DUMUX_IO_GRID_CPGRIDMANAGER_HH
13#define DUMUX_IO_GRID_CPGRIDMANAGER_HH
18#include <dune/common/version.hh>
19#include <dune/common/parallel/mpihelper.hh>
21#include <opm/grid/CpGrid.hpp>
23#if DUNE_VERSION_GTE(OPM_GRID, 2022, 10)
24#include <opm/input/eclipse/Parser/Parser.hpp>
25#include <opm/input/eclipse/Parser/ParseContext.hpp>
26#include <opm/input/eclipse/Deck/Deck.hpp>
27#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
29#include <opm/parser/eclipse/Parser/Parser.hpp>
30#include <opm/parser/eclipse/Parser/ParseContext.hpp>
31#include <opm/parser/eclipse/Deck/Deck.hpp>
32#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
48 using Grid = Dune::CpGrid;
49 using Deck = Opm::Deck;
54 void init(
const std::string& paramGroup =
"")
56 const auto fileName = getParamFromGroup<std::string>(paramGroup,
"Grid.File");
57 deck_ = std::make_shared<Opm::Deck>(Opm::Parser().parseFile(fileName));
58 Opm::EclipseGrid eclGrid(*deck_);
59 Opm::EclipseState eclState(*deck_);
60 grid_ = std::make_shared<Grid>();
61 grid_->processEclipseFormat(&eclGrid, &eclState,
false,
false,
false);
78 std::shared_ptr<Deck> getDeck()
const
88 if (Dune::MPIHelper::getCommunication().size() > 1)
93 std::shared_ptr<Deck> deck_;
94 std::shared_ptr<Grid> grid_;
100#warning "Eclipse input support in opm-common is required to use the cornerpoint grid manager"
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.