diff --git a/src/dynamicMesh/dynamicFvMesh/dynamicRefinePolyFvMesh/dynamicRefinePolyFvMesh.C b/src/dynamicMesh/dynamicFvMesh/dynamicRefinePolyFvMesh/dynamicRefinePolyFvMesh.C index b7d966e01..7fb0c07c4 100644 --- a/src/dynamicMesh/dynamicFvMesh/dynamicRefinePolyFvMesh/dynamicRefinePolyFvMesh.C +++ b/src/dynamicMesh/dynamicFvMesh/dynamicRefinePolyFvMesh/dynamicRefinePolyFvMesh.C @@ -611,15 +611,23 @@ labelList dynamicRefinePolyFvMesh::selectRefineCells } } - // Guarantee 2:1 refinement after refinement - labelList consistentSet + // Guarantee 2:1 refinement after refinement. + + // Create a label list for consistent set + labelList consistentSet; + + // Note: the return type of consistentRefinement is Xfer, so + // we will transfer its contents into this list + labelList transferredConsistentSet ( meshCutter_.consistentRefinement ( candidates.shrink(), - true // Add to set to guarantee 2:1 + true, // Add to set to guarantee 2:1, + pointBasedRefinement_ // Whether to use point based refinement ) ); + consistentSet.transfer(transferredConsistentSet); Info<< "Selected " << returnReduce(consistentSet.size(), sumOp