Time: Simplification and rationalisation of userTime

First step towards merging userTime into Time so that post-processing tools
operate with the same userTime mode as the solvers.
This commit is contained in:
Henry Weller
2021-10-14 15:05:14 +01:00
parent 45c8a4695a
commit 686f7fb21a
53 changed files with 136 additions and 180 deletions

View File

@ -88,7 +88,7 @@ bool Foam::functionObjects::setTimeStepFunctionObject::execute()
{
const_cast<Time&>(time_).setDeltaT
(
timeStepPtr_().value(time_.timeOutputValue())
timeStepPtr_().value(time_.userTime())
);
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2020-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -85,7 +85,7 @@ bool Foam::functionObjects::setWriteIntervalFunctionObject::execute()
{
const_cast<Time&>(time_).setWriteInterval
(
writeIntervalPtr_().value(time_.timeOutputValue())
writeIntervalPtr_().value(time_.userTime())
);
return true;