ENH: runTimeControl - updated time for maxDuration and minTimeStep conditions
This commit is contained in:
parent
12afb3d34a
commit
c901f9bc7f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user