mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-14 04:01:55 -06:00
ECL simulator: use the report steps from the deck
This commit is contained in:
parent
87f30dad6f
commit
20e03577a9
@ -33,6 +33,7 @@
|
||||
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
|
||||
|
||||
#include <dune/grid/yaspgrid.hh>
|
||||
#include <dune/common/fvector.hh>
|
||||
@ -106,6 +107,8 @@ public:
|
||||
Opm::ParserPtr parser(new Opm::Parser());
|
||||
deck_ = parser->parseFile(fileName);
|
||||
|
||||
schedule_.reset(new Opm::Schedule(deck_));
|
||||
|
||||
std::shared_ptr<Opm::RUNSPECSection> runspecSection(new Opm::RUNSPECSection(deck_) );
|
||||
std::shared_ptr<Opm::GRIDSection> gridSection(new Opm::GRIDSection(deck_) );
|
||||
eclipseGrid_.reset(new Opm::EclipseGrid(runspecSection, gridSection));
|
||||
@ -138,6 +141,13 @@ public:
|
||||
Opm::DeckConstPtr deck() const
|
||||
{ return deck_; }
|
||||
|
||||
/*!
|
||||
* \brief Return a pointer to the internalized schedule of the
|
||||
* Eclipse deck
|
||||
*/
|
||||
Opm::ScheduleConstPtr schedule() const
|
||||
{ return schedule_; }
|
||||
|
||||
/*!
|
||||
* \brief Return a pointer to the EclipseGrid object
|
||||
*
|
||||
@ -152,6 +162,7 @@ public:
|
||||
private:
|
||||
GridPointer grid_;
|
||||
Opm::DeckConstPtr deck_;
|
||||
Opm::ScheduleConstPtr schedule_;
|
||||
Opm::EclipseGridConstPtr eclipseGrid_;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user