mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
argList - specializations for optionRead<string> etc.
- new optionLookupOrDefault and additional form of optionReadIfPresent with a default value
This commit is contained in:
@ -88,8 +88,7 @@ int main(int argc, char *argv[])
|
||||
const stringList& params = args.additionalArgs();
|
||||
|
||||
fileName exportName(params[0]);
|
||||
word importName("default");
|
||||
args.optionReadIfPresent("name", importName);
|
||||
word importName = args.optionLookupOrDefault<word>("name", "default");
|
||||
|
||||
// check that writing is supported
|
||||
if (!MeshedSurface<face>::canWriteType(exportName.ext(), true))
|
||||
|
||||
Reference in New Issue
Block a user