STYLE: use writeEntry(), beginBlock(), endBlock() methods

- use dictionary::get<..> instead of lookup in a few more places
This commit is contained in:
Mark Olesen
2020-04-23 16:17:38 +02:00
parent 81bd0aa09f
commit 79048eb68f
106 changed files with 421 additions and 410 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2015-2019 OpenCFD Ltd.
Copyright (C) 2015-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -308,8 +308,7 @@ int main(int argc, char *argv[])
<< exit(FatalError);
}
fileName sourceCasePath(dict.lookup("sourceCase"));
sourceCasePath.expand();
fileName sourceCasePath(dict.get<fileName>("sourceCase").expand());
fileName sourceRootDir = sourceCasePath.path();
fileName sourceCaseDir = sourceCasePath.name();
if (Pstream::parRun())
@ -758,8 +757,7 @@ int main(int argc, char *argv[])
else
{
// Read from surface
fileName surfName(dict.lookup("surface"));
surfName.expand();
fileName surfName(dict.get<fileName>("surface").expand());
Info<< "Extruding surfaceMesh read from file " << surfName << nl
<< endl;