ENH: Use reference instead of copy

This commit is contained in:
andy
2011-03-14 10:20:37 +00:00
parent ab70c54d04
commit c99be4ebc6

View File

@ -123,7 +123,7 @@ void Foam::filmHeightInletVelocityFvPatchVectorField::updateCoeffs()
const fvPatchField<scalar>& deltafp =
patch().lookupPatchField<volScalarField, scalar>(deltafName_);
vectorField n = patch().nf();
const vectorField& n = patch().nf();
const scalarField& magSf = patch().magSf();
operator==(deltafp*n*phip/(rhop*magSf*sqr(deltafp) + ROOTVSMALL));