mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: foamToEnsight: filtering empty patches from geom but not fields.
This commit is contained in:
@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user