From dc052dd20c1bb368250f2a512ea9fa033920a4bf Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 10 Mar 2022 08:58:43 +0000 Subject: [PATCH] functionObjectList: Added access to the PtrList::append function to allow addition of case specific functionObjects during the run. --- .../db/functionObjects/functionObjectList/functionObjectList.H | 3 +++ .../db/functionObjects/timeControl/timeControlFunctionObject.C | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.H b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.H index 34f6e7d994..284f5d29af 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.H +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.H @@ -168,6 +168,9 @@ public: //- Access to the functionObjects using PtrList::operator[]; + //- Allow addition of functionObjects to list + using PtrList::append; + //- Clear the list of function objects void clear(); diff --git a/src/OpenFOAM/db/functionObjects/timeControl/timeControlFunctionObject.C b/src/OpenFOAM/db/functionObjects/timeControl/timeControlFunctionObject.C index 789cecf3da..a53a0709cc 100644 --- a/src/OpenFOAM/db/functionObjects/timeControl/timeControlFunctionObject.C +++ b/src/OpenFOAM/db/functionObjects/timeControl/timeControlFunctionObject.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2022 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -156,7 +156,6 @@ bool Foam::functionObjects::timeControl::end() } - Foam::scalar Foam::functionObjects::timeControl::timeToNextWrite() { if