fix the output of the size of the next time step if timestepping is done externaly

This commit is contained in:
Andreas Lauser
2019-02-15 16:58:50 +01:00
parent b1a526e5c2
commit 148728973f

View File

@@ -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