mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
cleanup of time handling (cosmetic changes), used timeSelector in more places
This commit is contained in:
@ -28,6 +28,7 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
#include "timeSelector.H"
|
||||
#include "Time.H"
|
||||
#include "fvMesh.H"
|
||||
#include "topoSetSource.H"
|
||||
@ -174,19 +175,13 @@ public:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
timeSelector::addOptions();
|
||||
|
||||
# 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);
|
||||
instantList timeDirs = timeSelector::select0(runTime, args);
|
||||
|
||||
# include "createMesh.H"
|
||||
|
||||
@ -220,11 +215,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
PtrList<entry> regions(setFieldsDict.lookup("regions"));
|
||||
|
||||
forAll(regions, regioni)
|
||||
forAll(regions, regionI)
|
||||
{
|
||||
const entry& region = regions[regioni];
|
||||
const entry& region = regions[regionI];
|
||||
|
||||
autoPtr<topoSetSource> cellSelector =
|
||||
autoPtr<topoSetSource> cellSelector =
|
||||
topoSetSource::New(region.keyword(), mesh, region.dict());
|
||||
|
||||
cellSet selectedCellSet
|
||||
@ -247,7 +242,7 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
}
|
||||
|
||||
Info << nl << "End" << endl;
|
||||
Info<< "\nEnd" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user