Replaced all remaining addTimeOptions.H includes with the more flexible timeSelector

This commit is contained in:
Henry Weller
2023-06-23 15:24:06 +01:00
parent f3df607dde
commit 0657826ab9
43 changed files with 91 additions and 162 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
@ -27,6 +27,7 @@ Description
\*---------------------------------------------------------------------------*/
#include "argList.H"
#include "timeSelector.H"
#include "Time.H"
#include "fvMesh.H"
#include "topoSetSource.H"
@ -402,20 +403,12 @@ public:
int main(int argc, char *argv[])
{
timeSelector::addOptions();
#include "addDictOption.H"
#include "addRegionOption.H"
#include "addTimeOptions.H"
#include "setRootCase.H"
#include "createTime.H"
// Get times list
instantList Times = runTime.times();
// Set startTime and endTime depending on -time and -latestTime options
#include "checkTimeOptions.H"
runTime.setTime(Times[startTime], startTime);
timeSelector::select0(runTime, args);
#include "createNamedMesh.H"
const dictionary setFieldsDict(systemDict("setFieldsDict", args, mesh));