diff --git a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C index 39c28bf28..3ecc63174 100644 --- a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C +++ b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) # include "createMesh.H" const word oldInstance = mesh.pointsInstance(); - pointMesh pMesh(mesh); + const pointMesh& pMesh = pointMesh::New(mesh); word cellSetName(args.args()[1]); bool overwrite = args.optionFound("overwrite");