STYLE: find(), cfind() methods instead of lookupPtr()

- coordinateSystems, DictionaryBase
This commit is contained in:
Mark Olesen
2020-03-11 21:28:01 +01:00
parent a18617bbd1
commit 8e27022ea2
13 changed files with 70 additions and 38 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2018 OpenCFD Ltd.
Copyright (C) 2018-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -172,7 +172,7 @@ int main(int argc, char *argv[])
if (args.found("from"))
{
const word csName(args["from"]);
const auto* csPtr = globalCoords.lookupPtr(csName);
const auto* csPtr = globalCoords.cfind(csName);
if (!csPtr)
{
@ -189,7 +189,7 @@ int main(int argc, char *argv[])
if (args.found("to"))
{
const word csName(args["to"]);
const auto* csPtr = globalCoords.lookupPtr(csName);
const auto* csPtr = globalCoords.cfind(csName);
if (!csPtr)
{