Skip to content
Snippets Groups Projects
Commit 14da496a authored by mattijs's avatar mattijs
Browse files

ENH: setsToZones: allow -time options

parent 434e2faf
Branches
Tags
No related merge requests found
...@@ -2,4 +2,5 @@ EXE_INC = \ ...@@ -2,4 +2,5 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools -lmeshTools \
-lsampling
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -48,6 +48,7 @@ Description ...@@ -48,6 +48,7 @@ Description
#include "IFstream.H" #include "IFstream.H"
#include "IOobjectList.H" #include "IOobjectList.H"
#include "SortableList.H" #include "SortableList.H"
#include "timeSelector.H"
using namespace Foam; using namespace Foam;
...@@ -57,6 +58,7 @@ using namespace Foam; ...@@ -57,6 +58,7 @@ using namespace Foam;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
timeSelector::addOptions(true, false);
argList::addNote argList::addNote
( (
"add point/face/cell Zones from similar named point/face/cell Sets" "add point/face/cell Zones from similar named point/face/cell Sets"
...@@ -76,15 +78,7 @@ int main(int argc, char *argv[]) ...@@ -76,15 +78,7 @@ int main(int argc, char *argv[])
const bool noFlipMap = args.optionFound("noFlipMap"); const bool noFlipMap = args.optionFound("noFlipMap");
// Get times list // Get times list
instantList Times = runTime.times(); (void)timeSelector::selectIfPresent(runTime, args);
label startTime = Times.size()-1;
label endTime = Times.size();
// check -time and -latestTime options
#include "checkTimeOption.H"
runTime.setTime(Times[startTime], startTime);
#include "createNamedPolyMesh.H" #include "createNamedPolyMesh.H"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment