Commit f3cff963 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: runTimeControl - updated time for maxDuration and minTimeStep conditions

parent 3c050d96
......@@ -2,10 +2,8 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -73,8 +71,6 @@ maxDurationCondition
{
initialised_ = true;
}
duration_ = obr_.time().userTimeToTime(duration_);
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
......@@ -62,7 +62,9 @@ minTimeStepCondition
:
runTimeCondition(name, obr, dict, state),
minValue_(dict.get<scalar>("minValue"))
{}
{
minValue_ = obr_.time().userTimeToTime(minValue_);
}
// * * * * * * * * * * * * * * Public Member Functions * * * * * * * * * * * //
......
......@@ -62,7 +62,7 @@ protected:
// Protected data
//- Minimum time step value to compare
const scalar minValue_;
scalar minValue_;
public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment