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:
@ -498,7 +498,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
fileName regionPrefix = "";
|
||||
fileName regionPrefix;
|
||||
if (regionName != fvMesh::defaultRegion)
|
||||
{
|
||||
regionPrefix = regionName;
|
||||
@ -520,8 +520,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (args.optionFound("subDict"))
|
||||
{
|
||||
word subDictName(args.optionLookup("subDict")());
|
||||
replaceDictsPtr = &dict.subDict(subDictName);
|
||||
replaceDictsPtr = &dict.subDict(args["subDict"]);
|
||||
}
|
||||
|
||||
const dictionary& replaceDicts = *replaceDictsPtr;
|
||||
|
||||
Reference in New Issue
Block a user