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

ENH: runTimeControl - updated time for maxDuration and minTimeStep conditions

parent 12afb3d3
...@@ -2,10 +2,8 @@ ...@@ -2,10 +2,8 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -73,8 +71,6 @@ maxDurationCondition ...@@ -73,8 +71,6 @@ maxDurationCondition
{ {
initialised_ = true; initialised_ = true;
} }
duration_ = obr_.time().userTimeToTime(duration_);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation | Copyright (C) 2015 OpenFOAM Foundation
...@@ -62,7 +62,9 @@ minTimeStepCondition ...@@ -62,7 +62,9 @@ minTimeStepCondition
: :
runTimeCondition(name, obr, dict, state), runTimeCondition(name, obr, dict, state),
minValue_(dict.get<scalar>("minValue")) minValue_(dict.get<scalar>("minValue"))
{} {
minValue_ = obr_.time().userTimeToTime(minValue_);
}
// * * * * * * * * * * * * * * Public Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * Public Member Functions * * * * * * * * * * * //
......
...@@ -62,7 +62,7 @@ protected: ...@@ -62,7 +62,7 @@ protected:
// Protected data // Protected data
//- Minimum time step value to compare //- Minimum time step value to compare
const scalar minValue_; scalar minValue_;
public: public:
......
Supports Markdown
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