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) 2021-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2021-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -39,8 +39,7 @@ int main(int argc, char *argv[])
#include "addRegionOption.H"
#include "setRootCase.H"
#include "createTime.H"
runTime.functionObjects().off();
#include "createTimeNoFunctionObjects.H"
#include "createNamedMesh.H"
const bool write = args.optionFound("write");

View File

@ -41,9 +41,8 @@ int main(int argc, char *argv[])
{
argList::validArgs.append("cloudName");
#include "setRootCase.H"
#include "createTime.H"
#include "createTimeNoFunctionObjects.H"
#include "createMesh.H"
runTime.functionObjects().off();
const word cloudName = args[1];