mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use new argList argRead() method and operator[] for cleaner code.
- deprecate argList::additionalArgs() method and remove uses of it
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -188,10 +188,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
argList args(argc, argv);
|
||||
|
||||
bool checkSelfIntersection = args.optionFound("checkSelfIntersection");
|
||||
bool verbose = args.optionFound("verbose");
|
||||
const fileName surfFileName = args[1];
|
||||
const bool checkSelfIntersect = args.optionFound("checkSelfIntersection");
|
||||
const bool verbose = args.optionFound("verbose");
|
||||
|
||||
fileName surfFileName(args.additionalArgs()[0]);
|
||||
Info<< "Reading surface from " << surfFileName << " ..." << nl << endl;
|
||||
|
||||
|
||||
@ -657,7 +657,7 @@ int main(int argc, char *argv[])
|
||||
// Check self-intersection
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
if (checkSelfIntersection)
|
||||
if (checkSelfIntersect)
|
||||
{
|
||||
Info<< "Checking self-intersection." << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user