Store whether timestep failed or not

Used in flow ebos to tell the simulator to recalculate the cached
quantities for failed timesteps.
This commit is contained in:
Tor Harald Sandve
2016-12-05 09:37:30 +01:00
parent 676af2b00b
commit f65f5d2c3b
5 changed files with 18 additions and 1 deletions

View File

@@ -93,6 +93,12 @@ namespace Opm
/// \brief start date time of simulation
boost::posix_time::ptime startDateTime() const;
/// \brief Return true if last time step failed
bool lastStepFailed() const {return lastStepFailed_;}
/// \brief tell the timestepper whether timestep failed or not
void setLastStepFailed(bool lastStepFailed) {lastStepFailed_ = lastStepFailed;}
/// return copy of object
virtual std::unique_ptr< SimulatorTimerInterface > clone() const;
@@ -108,6 +114,8 @@ namespace Opm
int current_step_;
std::vector< double > steps_;
bool lastStepFailed_;
};
} // namespace Opm