Skip to content
Snippets Groups Projects
Commit 208953f5 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: use restricted dictionary lookup for utilities (issue #762)

- get<label>, get<scalar> instead of readLabel, readScalar, etc.
parent 09899148
No related branches found
No related tags found
No related merge requests found
...@@ -368,7 +368,7 @@ void Foam::vtkPVFoam::updateInfoPatches ...@@ -368,7 +368,7 @@ void Foam::vtkPVFoam::updateInfoPatches
const dictionary& patchDict = patchEntries[patchi].dict(); const dictionary& patchDict = patchEntries[patchi].dict();
wordList groupNames; wordList groupNames;
sizes[patchi] = readLabel(patchDict.lookup("nFaces")); sizes[patchi] = patchDict.get<label>("nFaces");
names[patchi] = patchEntries[patchi].keyword(); names[patchi] = patchEntries[patchi].keyword();
if if
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment