mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: spurious reading of int instead of label
This commit is contained in:
@ -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
|
|||||||
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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user