mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove EclipseGridParser compatibility methods from all classes
This commit is contained in:
parent
2dacfc8c15
commit
0fe2d04708
@ -21,7 +21,6 @@
|
||||
#include <opm/core/simulator/SimulatorTimer.hpp>
|
||||
#include <opm/core/utility/parameters/ParameterGroup.hpp>
|
||||
#include <opm/core/utility/Units.hpp>
|
||||
#include <opm/core/io/eclipse/EclipseGridParser.hpp>
|
||||
#include <ostream>
|
||||
#include <numeric>
|
||||
|
||||
@ -49,14 +48,6 @@ namespace Opm
|
||||
total_time_ = num_psteps*stepsize;
|
||||
}
|
||||
|
||||
/// Initialize from TSTEP field.
|
||||
void SimulatorTimer::init(const EclipseGridParser& deck)
|
||||
{
|
||||
timesteps_ = deck.getTSTEP().tstep_;
|
||||
total_time_ = std::accumulate(timesteps_.begin(), timesteps_.end(), 0.0);
|
||||
start_date_ = deck.getStartDate();
|
||||
}
|
||||
|
||||
/// Use the SimulatorTimer as a shim around opm-parser's Opm::TimeMap
|
||||
void SimulatorTimer::init(Opm::TimeMapConstPtr timeMap)
|
||||
{
|
||||
|
@ -31,8 +31,6 @@ namespace Opm
|
||||
{
|
||||
|
||||
namespace parameter { class ParameterGroup; }
|
||||
class EclipseGridParser;
|
||||
|
||||
|
||||
class SimulatorTimer
|
||||
{
|
||||
@ -45,10 +43,6 @@ namespace Opm
|
||||
/// stepsize_days (default 1)
|
||||
void init(const parameter::ParameterGroup& param);
|
||||
|
||||
/// Initialize from TSTEP field.
|
||||
/// Note that DATES are folded into TSTEP by the parser.
|
||||
void init(const EclipseGridParser& deck);
|
||||
|
||||
/// Use the SimulatorTimer as a shim around opm-parser's Opm::TimeMap
|
||||
void init(TimeMapConstPtr timeMap);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user