mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid unnecessary use of optionLookup
- direct parsing of -funcs to ITstream. - use direct lookup when the option is a word/string
This commit is contained in:
@ -319,9 +319,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (args.optionFound("addEmptyPatch"))
|
||||
word emptyPatchName;
|
||||
if (args.optionReadIfPresent("addEmptyPatch", emptyPatchName))
|
||||
{
|
||||
word emptyPatchName(args.optionLookup("addEmptyPatch")());
|
||||
dictionary emptyPatchDict;
|
||||
emptyPatchDict.add("type", "empty");
|
||||
emptyPatchDict.add("edgeLabels", labelList());
|
||||
|
||||
Reference in New Issue
Block a user