From c99be4ebc6a2b943863278ce3c81c3e97cd764cf Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 14 Mar 2011 10:20:37 +0000 Subject: [PATCH] ENH: Use reference instead of copy --- .../filmHeightInletVelocityFvPatchVectorField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C index 148e9d2dc6..3ac7e91792 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C @@ -123,7 +123,7 @@ void Foam::filmHeightInletVelocityFvPatchVectorField::updateCoeffs() const fvPatchField& deltafp = patch().lookupPatchField(deltafName_); - vectorField n = patch().nf(); + const vectorField& n = patch().nf(); const scalarField& magSf = patch().magSf(); operator==(deltafp*n*phip/(rhop*magSf*sqr(deltafp) + ROOTVSMALL));