From c072f911c9d4c22a3f98508a3d856f91a242d1d1 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Wed, 19 Apr 2017 13:44:54 +0100 Subject: [PATCH] BUG: Corrected compilation errors --- .../cellSizeAndAlignmentGrid/cellSizeAndAlignmentGrid.C | 6 +++--- .../conformalVoronoiMesh/DelaunayMesh/DelaunayMesh.C | 1 + .../smoothAlignmentSolver/smoothAlignmentSolver.C | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/applications/utilities/mesh/generation/foamyMesh/cellSizeAndAlignmentGrid/cellSizeAndAlignmentGrid.C b/applications/utilities/mesh/generation/foamyMesh/cellSizeAndAlignmentGrid/cellSizeAndAlignmentGrid.C index a9026a5156..8f57ee2bbf 100644 --- a/applications/utilities/mesh/generation/foamyMesh/cellSizeAndAlignmentGrid/cellSizeAndAlignmentGrid.C +++ b/applications/utilities/mesh/generation/foamyMesh/cellSizeAndAlignmentGrid/cellSizeAndAlignmentGrid.C @@ -62,7 +62,7 @@ Foam::tmp> filterFarPoints ) { tmp> tNewField(new Field(field.size())); - Field& newField = tNewField(); + Field& newField = tNewField.ref(); label added = 0; label count = 0; @@ -160,7 +160,7 @@ Foam::tmp buildAlignmentField(const T& mesh) ( new triadField(mesh.vertexCount(), triad::unset) ); - triadField& alignments = tAlignments(); + triadField& alignments = tAlignments.ref(); for ( @@ -188,7 +188,7 @@ Foam::tmp buildPointField(const T& mesh) ( new pointField(mesh.vertexCount(), point(GREAT, GREAT, GREAT)) ); - pointField& points = tPoints(); + pointField& points = tPoints.ref(); for ( diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMesh/DelaunayMesh.C b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMesh/DelaunayMesh.C index 4831560f5d..39626ceafa 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMesh/DelaunayMesh.C +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMesh/DelaunayMesh.C @@ -24,6 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "DelaunayMesh.H" +#include "polyMesh.H" #include "labelPair.H" #include "PrintTable.H" #include "pointIOField.H" diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/smoothAlignmentSolver/smoothAlignmentSolver.C b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/smoothAlignmentSolver/smoothAlignmentSolver.C index e975f6d4f2..33abcb622c 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/smoothAlignmentSolver/smoothAlignmentSolver.C +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/smoothAlignmentSolver/smoothAlignmentSolver.C @@ -35,7 +35,7 @@ Foam::tmp> Foam::smoothAlignmentSolver::filterFarPoints ) { tmp> tNewField(new Field(field.size())); - Field& newField = tNewField(); + Field& newField = tNewField.ref(); label added = 0; label count = 0;