Skip to content
Snippets Groups Projects
Commit 64df20d9 authored by mattijs's avatar mattijs Committed by Mark OLESEN
Browse files

BUG: timeControl: add tolerance to timeStart, timeEnd. Fixes #367.

parent 2c778ce5
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -52,8 +52,8 @@ void Foam::functionObjects::timeControl::readControls() ...@@ -52,8 +52,8 @@ void Foam::functionObjects::timeControl::readControls()
bool Foam::functionObjects::timeControl::active() const bool Foam::functionObjects::timeControl::active() const
{ {
return return
time_.value() >= timeStart_ time_.value() >= (timeStart_ - 0.5*time_.deltaTValue())
&& time_.value() <= timeEnd_; && time_.value() <= (timeEnd_ + 0.5*time_.deltaTValue());
} }
......
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