BUG: foamToEnsight: filtering empty patches from geom but not fields.

This commit is contained in:
mattijs
2010-10-08 18:00:50 +01:00
parent f749327105
commit 3f2747c669

View File

@ -558,10 +558,10 @@ void ensightPointField
if (patchNames.empty() || patchNames.found(patchName)) if (patchNames.empty() || patchNames.found(patchName))
{ {
const polyPatch& p = mesh.boundaryMesh()[patchi]; const fvPatch& p = mesh.boundary()[patchi];
if if
( (
returnReduce(pf.boundaryField()[patchi].size(), sumOp<label>()) returnReduce(p.size(), sumOp<label>())
> 0 > 0
) )
{ {
@ -571,8 +571,8 @@ void ensightPointField
autoPtr<globalIndex> globalPointsPtr = autoPtr<globalIndex> globalPointsPtr =
mesh.globalData().mergePoints mesh.globalData().mergePoints
( (
p.meshPoints(), p.patch().meshPoints(),
p.meshPointMap(), p.patch().meshPointMap(),
pointToGlobal, pointToGlobal,
uniqueMeshPointLabels uniqueMeshPointLabels
); );