diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/hexRef8.C b/src/dynamicMesh/polyTopoChange/polyTopoChange/hexRef8.C index 9cc5ed3d6d..efed7f22f7 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/hexRef8.C +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/hexRef8.C @@ -3185,7 +3185,8 @@ Foam::labelList Foam::hexRef8::consistentSlowRefinement2 forAll(refineCell, cellI) { - if (refineCell.get(cellI)) +// if (refineCell.get(cellI)) + if (refineCell[cellI]) { nRefined++; } @@ -3196,7 +3197,8 @@ Foam::labelList Foam::hexRef8::consistentSlowRefinement2 forAll(refineCell, cellI) { - if (refineCell.get(cellI)) +// if (refineCell.get(cellI)) + if (refineCell[cellI]) { newCellsToRefine[nRefined++] = cellI; }