mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix the output of the size of the next time step if timestepping is done externaly
This commit is contained in:
@@ -1533,6 +1533,10 @@ public:
|
||||
*/
|
||||
Scalar nextTimeStepSize() const
|
||||
{
|
||||
// allow external code to do the timestepping
|
||||
if (this->nextTimeStepSize_ > 0.0)
|
||||
return this->nextTimeStepSize_;
|
||||
|
||||
int episodeIdx = this->simulator().episodeIndex();
|
||||
|
||||
// for the initial episode, we use a fixed time step size
|
||||
|
||||
Reference in New Issue
Block a user