diff --git a/src/OpenFOAM/db/functionObjects/timeControl/timeControl.C b/src/OpenFOAM/db/functionObjects/timeControl/timeControl.C index 48fe91ff35..9ebe9939f0 100644 --- a/src/OpenFOAM/db/functionObjects/timeControl/timeControl.C +++ b/src/OpenFOAM/db/functionObjects/timeControl/timeControl.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -178,7 +178,7 @@ bool Foam::timeControl::execute() case timeControls::runTime: case timeControls::adjustableRunTime: { - label executionIndex = label + const label executionIndex = label ( ( (time_.value() - time_.beginTime().value()) @@ -197,7 +197,7 @@ bool Foam::timeControl::execute() case timeControls::cpuTime: { - label executionIndex = label + const label executionIndex = label ( returnReduce(time_.elapsedCpuTime(), maxOp()) /interval_ @@ -212,7 +212,7 @@ bool Foam::timeControl::execute() case timeControls::clockTime: { - label executionIndex = label + const label executionIndex = label ( returnReduce(label(time_.elapsedClockTime()), maxOp