Commit d25dd342 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: spurious reading of int instead of label

parent d58c1424
...@@ -84,7 +84,7 @@ Foam::faPatch::faPatch ...@@ -84,7 +84,7 @@ Foam::faPatch::faPatch
: :
labelList(dict.lookup("edgeLabels")), labelList(dict.lookup("edgeLabels")),
patchIdentifier(name, dict, index), patchIdentifier(name, dict, index),
ngbPolyPatchIndex_(readInt(dict.lookup("ngbPolyPatchIndex"))), ngbPolyPatchIndex_(dict.get<label>("ngbPolyPatchIndex")),
boundaryMesh_(bm), boundaryMesh_(bm),
edgeFacesPtr_(nullptr), edgeFacesPtr_(nullptr),
pointLabelsPtr_(nullptr), pointLabelsPtr_(nullptr),
......
...@@ -41,7 +41,7 @@ Foam::autoPtr<Foam::faPatch> Foam::faPatch::New ...@@ -41,7 +41,7 @@ Foam::autoPtr<Foam::faPatch> Foam::faPatch::New
DebugInFunction DebugInFunction
<< "constructing faPatch" << endl; << "constructing faPatch" << endl;
word patchType(dict.lookup("type")); const word patchType(dict.get<word>("type"));
auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchType); auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchType);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment