mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
fix the output of the size of the next time step if timestepping is done externaly
This commit is contained in:
1 parent
b1a526e5c2
commit
148728973f
1 file changed
+4
@@ -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