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

STYLE: spurious reading of int instead of label

parent d58c1424
Branches
Tags
No related merge requests found
......@@ -84,7 +84,7 @@ Foam::faPatch::faPatch
:
labelList(dict.lookup("edgeLabels")),
patchIdentifier(name, dict, index),
ngbPolyPatchIndex_(readInt(dict.lookup("ngbPolyPatchIndex"))),
ngbPolyPatchIndex_(dict.get<label>("ngbPolyPatchIndex")),
boundaryMesh_(bm),
edgeFacesPtr_(nullptr),
pointLabelsPtr_(nullptr),
......
......@@ -41,7 +41,7 @@ Foam::autoPtr<Foam::faPatch> Foam::faPatch::New
DebugInFunction
<< "constructing faPatch" << endl;
word patchType(dict.lookup("type"));
const word patchType(dict.get<word>("type"));
auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment