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
|
||||
@ -173,12 +173,12 @@ int main(int argc, char *argv[])
|
||||
# include "createTime.H"
|
||||
# include "createPolyMesh.H"
|
||||
|
||||
fileName surfName(args.additionalArgs()[0]);
|
||||
const fileName surfName = args[1];
|
||||
|
||||
Info<< "Reading surface from " << surfName << " ..." << endl;
|
||||
|
||||
word setName;
|
||||
bool readSet = args.optionReadIfPresent("faceSet", setName);
|
||||
const bool readSet = args.optionReadIfPresent("faceSet", setName);
|
||||
|
||||
if (readSet)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user