reconstructParMesh: Enable -constant and -zeroTime options
This commit is contained in:
parent
559ca6d585
commit
7445bfe634
2 changed files with 21 additions and 17 deletions
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -72,8 +72,8 @@ int main(int argc, char *argv[])
|
|||
"Reconstruct fields of a parallel case"
|
||||
);
|
||||
|
||||
// enable -constant ... if someone really wants it
|
||||
// enable -zeroTime to prevent accidentally trashing the initial fields
|
||||
// Enable -constant ... if someone really wants it
|
||||
// Enable -zeroTime to prevent accidentally trashing the initial fields
|
||||
timeSelector::addOptions(true, true);
|
||||
argList::noParallel();
|
||||
#include "addRegionOption.H"
|
||||
|
|
@ -190,7 +190,7 @@ int main(int argc, char *argv[])
|
|||
);
|
||||
}
|
||||
|
||||
// use the times list from the master processor
|
||||
// Use the times list from the master processor
|
||||
// and select a subset based on the command-line options
|
||||
instantList timeDirs = timeSelector::select
|
||||
(
|
||||
|
|
@ -308,7 +308,7 @@ int main(int argc, char *argv[])
|
|||
processorMeshes procMeshes(databases, regionName);
|
||||
|
||||
|
||||
// check face addressing for meshes that have been decomposed
|
||||
// Check face addressing for meshes that have been decomposed
|
||||
// with a very old foam version
|
||||
#include "checkFaceAddressingComp.H"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -97,8 +97,8 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
|
|||
(
|
||||
masterMesh,
|
||||
meshToAdd,
|
||||
mergeDist, // absolute merging distance
|
||||
true // matching faces identical
|
||||
mergeDist, // Absolute merging distance
|
||||
true // Matching faces identical
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -196,9 +196,9 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
|
|||
masterFaces,
|
||||
meshToAdd,
|
||||
addFaces,
|
||||
mergeDist, // absolute merging distance
|
||||
true, // matching faces identical?
|
||||
false, // if perfectmatch are faces already ordered
|
||||
mergeDist, // Absolute merging distance
|
||||
true, // Matching faces identical?
|
||||
false, // If perfect match are faces already ordered
|
||||
// (e.g. processor patches)
|
||||
false // are faces each on separate patch?
|
||||
)
|
||||
|
|
@ -431,6 +431,9 @@ int main(int argc, char *argv[])
|
|||
"reconstruct a mesh using geometric information only"
|
||||
);
|
||||
|
||||
// Enable -constant ... if someone really wants it
|
||||
// Enable -zeroTime to prevent accidentally trashing the initial fields
|
||||
timeSelector::addOptions(true, true);
|
||||
argList::noParallel();
|
||||
argList::addOption
|
||||
(
|
||||
|
|
@ -562,7 +565,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
|
||||
// use the times list from the master processor
|
||||
// Use the times list from the master processor
|
||||
// and select a subset based on the command-line options
|
||||
instantList Times = timeSelector::select
|
||||
(
|
||||
|
|
@ -570,7 +573,7 @@ int main(int argc, char *argv[])
|
|||
args
|
||||
);
|
||||
|
||||
// set startTime and endTime depending on -time and -latestTime options
|
||||
// Set startTime and endTime depending on -time and -latestTime options
|
||||
#include "checkTimeOptions.H"
|
||||
|
||||
if (Times.empty())
|
||||
|
|
@ -628,6 +631,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
// Internal faces on the final reconstructed mesh
|
||||
label masterInternalFaces;
|
||||
|
||||
// Owner addressing on the final reconstructed mesh
|
||||
labelList masterOwner;
|
||||
|
||||
|
|
@ -786,7 +790,7 @@ int main(int argc, char *argv[])
|
|||
procMesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // do not register
|
||||
false // Do not register
|
||||
),
|
||||
pointProcAddressing[procI]
|
||||
).write();
|
||||
|
|
@ -810,7 +814,7 @@ int main(int argc, char *argv[])
|
|||
procMesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // do not register
|
||||
false // Do not register
|
||||
),
|
||||
faceProcAddressing[procI]
|
||||
);
|
||||
|
|
@ -873,7 +877,7 @@ int main(int argc, char *argv[])
|
|||
procMesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // do not register
|
||||
false // Do not register
|
||||
),
|
||||
cellProcAddressing[procI]
|
||||
).write();
|
||||
|
|
@ -898,7 +902,7 @@ int main(int argc, char *argv[])
|
|||
procMesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // do not register
|
||||
false // Do not register
|
||||
),
|
||||
boundaryProcAddressing[procI]
|
||||
).write();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue