24#ifndef DUMUX_IO_GRID_CPGRIDMANAGER_HH
25#define DUMUX_IO_GRID_CPGRIDMANAGER_HH
28#include <dune/common/parallel/mpihelper.hh>
30#include <opm/grid/CpGrid.hpp>
31#include <opm/parser/eclipse/Parser/Parser.hpp>
32#include <opm/parser/eclipse/Parser/ParseContext.hpp>
33#include <opm/parser/eclipse/Deck/Deck.hpp>
46 using Grid = Dune::CpGrid;
47 using Deck = Opm::Deck;
52 void init(
const std::string& paramGroup =
"")
54 const auto fileName = getParamFromGroup<std::string>(paramGroup,
"Grid.File");
55 deck_ = std::make_shared<Opm::Deck>(Opm::Parser().parseFile(fileName));
56 Opm::EclipseGrid eclGrid(*deck_);
57 grid_ = std::make_shared<Grid>();
58 grid_->processEclipseFormat(eclGrid,
false,
false);
75 std::shared_ptr<Deck> getDeck()
const
85 if (Dune::MPIHelper::getCollectiveCommunication().size() > 1)
90 std::shared_ptr<Deck> deck_;
91 std::shared_ptr<Grid> grid_;
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29