Time, functionObjectList: Refactored to simplify construction and switching-off functionObjects

This commit is contained in:
Henry Weller
2023-06-06 08:17:52 +01:00
parent 6b1278b544
commit 08544446e8
45 changed files with 205 additions and 309 deletions

View File

@ -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
@ -348,12 +348,11 @@ Foam::vtkPVFoam::vtkPVFoam
(
Time::controlDictName,
fileName(fullCasePath.path()),
fileName(fullCasePath.name())
fileName(fullCasePath.name()),
false
)
);
dbPtr_().functionObjects().off();
fileNameList configDictFiles = findEtcFiles("paraFoam", false);
forAllReverse(configDictFiles, cdfi)
{

View File

@ -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
@ -233,12 +233,11 @@ Foam::vtkPVblockMesh::vtkPVblockMesh
(
Time::controlDictName,
fileName(fullCasePath.path()),
fileName(fullCasePath.name())
fileName(fullCasePath.name()),
false
)
);
dbPtr_().functionObjects().off();
updateInfo();
}

View File

@ -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
@ -202,8 +202,7 @@ int main(int argc, char *argv[])
);
#include "setRootCase.H"
#include "createTime.H"
runTime.functionObjects().off();
#include "createTimeNoFunctionObjects.H"
HashSet<word> selectedFields;
if (args.optionFound("fields"))