mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Use reference instead of copy
This commit is contained in:
@ -123,7 +123,7 @@ void Foam::filmHeightInletVelocityFvPatchVectorField::updateCoeffs()
|
|||||||
const fvPatchField<scalar>& deltafp =
|
const fvPatchField<scalar>& deltafp =
|
||||||
patch().lookupPatchField<volScalarField, scalar>(deltafName_);
|
patch().lookupPatchField<volScalarField, scalar>(deltafName_);
|
||||||
|
|
||||||
vectorField n = patch().nf();
|
const vectorField& n = patch().nf();
|
||||||
const scalarField& magSf = patch().magSf();
|
const scalarField& magSf = patch().magSf();
|
||||||
|
|
||||||
operator==(deltafp*n*phip/(rhop*magSf*sqr(deltafp) + ROOTVSMALL));
|
operator==(deltafp*n*phip/(rhop*magSf*sqr(deltafp) + ROOTVSMALL));
|
||||||
|
|||||||
Reference in New Issue
Block a user