Skip to content
Snippets Groups Projects
Commit ae8ccd7b authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: foamToEnsight cellZones missing mesh coverage (closes #2002)

parent 0ee7a235
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-2020 OpenCFD Ltd.
Copyright (C) 2016-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -199,6 +199,9 @@ void Foam::ensightMesh::correct()
if (returnReduce(!zn.empty(), orOp<bool>()))
{
// Ensure full mesh coverage
cellSelection.resize(mesh_.nCells());
cellSelection.set(zn);
ensightCells& part = cellZoneParts_(zoneId);
......@@ -267,6 +270,7 @@ void Foam::ensightMesh::correct()
if (returnReduce(!cellSelection.empty(), orOp<bool>()))
{
// Ensure full mesh coverage
excludeFace.resize(mesh_.nFaces());
const labelList& owner = mesh_.faceOwner();
......@@ -288,6 +292,7 @@ void Foam::ensightMesh::correct()
if (fzoneIds.size())
{
// Ensure full mesh coverage
excludeFace.resize(mesh_.nFaces());
for (const polyPatch& p : mesh_.boundaryMesh())
......
  • GA @agegnehu1 ·

    @mark If we replace the old ensightMesh.C of 2012 release with this one and compile, will it be good for the foamToEnsigt bug?

    Thank you.

  • Author Maintainer

    @agegnehu1 - yes it is just the missing line 203 that caused the issue. So, you can safely just copy this file.

    Edited by Mark OLESEN
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment