Change format of global face index in passiveProcessorPolyPatch to labelField
This commit is contained in:
parent
776d458012
commit
b60b67ffb6
2 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
|
||||||
polyPatch(name, dict, index, bm),
|
polyPatch(name, dict, index, bm),
|
||||||
myProcNo_(readLabel(dict.lookup("myProcNo"))),
|
myProcNo_(readLabel(dict.lookup("myProcNo"))),
|
||||||
neighbProcNo_(readLabel(dict.lookup("neighbProcNo"))),
|
neighbProcNo_(readLabel(dict.lookup("neighbProcNo"))),
|
||||||
globalFaceIndex_(dict.lookup("globalFaceIndex"))
|
globalFaceIndex_("globalFaceIndex", dict, size())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -152,7 +152,6 @@ void Foam::passiveProcessorPolyPatch::write(Ostream& os) const
|
||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("neighbProcNo") << neighbProcNo_
|
os.writeKeyword("neighbProcNo") << neighbProcNo_
|
||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
|
|
||||||
globalFaceIndex_.writeEntry("globalFaceIndex", os);
|
globalFaceIndex_.writeEntry("globalFaceIndex", os);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ SourceFiles
|
||||||
#define passiveProcessorPolyPatch_H
|
#define passiveProcessorPolyPatch_H
|
||||||
|
|
||||||
#include "polyBoundaryMesh.H"
|
#include "polyBoundaryMesh.H"
|
||||||
|
#include "labelField.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
@ -66,7 +67,7 @@ class passiveProcessorPolyPatch
|
||||||
int neighbProcNo_;
|
int neighbProcNo_;
|
||||||
|
|
||||||
//- Global processor face index
|
//- Global processor face index
|
||||||
labelList globalFaceIndex_;
|
labelField globalFaceIndex_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -169,7 +170,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return global processor face index
|
//- Return global processor face index
|
||||||
const labelList& globalFaceIndex() const
|
const labelField& globalFaceIndex() const
|
||||||
{
|
{
|
||||||
return globalFaceIndex_;
|
return globalFaceIndex_;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue