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,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -191,7 +192,7 @@ int main(int argc, char *argv[])
scalarDict.transfer(scalarDict2);
Scalar* p = scalarDict.lookupPtr("ent8");
const Scalar* p = scalarDict.cfind("ent8");
// This does not (yet) work
// Scalar* q = scalarDict.remove("ent10");
@ -210,7 +211,6 @@ int main(int argc, char *argv[])
// Info<< " = " << *iter << endl;
Info<< nl << "Done." << endl;
return 0;
}