From c3826501006b49822a8342e936eba3b1f7d235ba Mon Sep 17 00:00:00 2001 From: mark <mark@opencfd> Date: Mon, 16 Jan 2017 18:25:03 +0100 Subject: [PATCH] BUG: incorrect super-cells for foamVtkCells decomposition (fixes #385) --- src/conversion/vtk/part/foamVtkCells.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conversion/vtk/part/foamVtkCells.C b/src/conversion/vtk/part/foamVtkCells.C index b4c7beacde..5846c8442d 100644 --- a/src/conversion/vtk/part/foamVtkCells.C +++ b/src/conversion/vtk/part/foamVtkCells.C @@ -326,7 +326,7 @@ void Foam::foamVtkCells::correct() nAddVerts += 5; vertOffset_[celLoc] = nAddVerts; - decompose_.superCells_[nAddCells++] = celLoc; + decompose_.superCells_[nAddCells++] = cellI; } cellTypes_[celLoc] = foamVtkCore::VTK_PYRAMID; @@ -373,7 +373,7 @@ void Foam::foamVtkCells::correct() nAddVerts += 4; vertOffset_[celLoc] = nAddVerts; - decompose_.superCells_[nAddCells++] = celLoc; + decompose_.superCells_[nAddCells++] = cellI; } cellTypes_[celLoc] = foamVtkCore::VTK_TETRA; -- GitLab