mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Use argList::addOption, argList::addBoolOption (almost) everywhere
- ensure that the standard options (eg, from timeSelector) also have some usage information
This commit is contained in:
@ -95,17 +95,16 @@ void checkPatch(const polyBoundaryMesh& bMesh, const word& name)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
Foam::argList::noParallel();
|
||||
argList::noParallel();
|
||||
|
||||
Foam::argList::validArgs.append("masterPatch");
|
||||
Foam::argList::validArgs.append("slavePatch");
|
||||
argList::validArgs.append("masterPatch");
|
||||
argList::validArgs.append("slavePatch");
|
||||
|
||||
Foam::argList::validOptions.insert("partial", "");
|
||||
Foam::argList::validOptions.insert("perfect", "");
|
||||
argList::addBoolOption("partial");
|
||||
argList::addBoolOption("perfect");
|
||||
argList::addBoolOption("overwrite");
|
||||
|
||||
Foam::argList::validOptions.insert("overwrite", "");
|
||||
|
||||
Foam::argList::validOptions.insert("toleranceDict", "file with tolerances");
|
||||
argList::addOption("toleranceDict", "file with tolerances");
|
||||
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
@ -174,8 +173,10 @@ int main(int argc, char *argv[])
|
||||
dictionary slidingTolerances;
|
||||
if (args.options().found("toleranceDict"))
|
||||
{
|
||||
IOdictionary toleranceFile(
|
||||
IOobject(
|
||||
IOdictionary toleranceFile
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
args.options()["toleranceDict"],
|
||||
runTime.constant(),
|
||||
mesh,
|
||||
@ -202,7 +203,7 @@ int main(int argc, char *argv[])
|
||||
// Make list of masterPatch faces
|
||||
labelList isf(masterPatch.size());
|
||||
|
||||
forAll (isf, i)
|
||||
forAll(isf, i)
|
||||
{
|
||||
isf[i] = masterPatch.start() + i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user