STYLE: spurious reading of int instead of label
This commit is contained in:
parent
d58c142404
commit
d25dd342fa
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user