ENH: Pass fields by reference instead of copy

This commit is contained in:
andy
2013-05-08 12:43:27 +01:00
parent 01298af393
commit 98a1262035
2 changed files with 6 additions and 6 deletions

View File

@ -191,9 +191,9 @@ Foam::scalar Foam::forces::rho(const volScalarField& p) const
void Foam::forces::applyBins void Foam::forces::applyBins
( (
const label patchI, const label patchI,
const vectorField fN, const vectorField& fN,
const vectorField Md, const vectorField& Md,
const vectorField fT const vectorField& fT
) )
{ {
if (nBin_ == 1) if (nBin_ == 1)

View File

@ -232,9 +232,9 @@ protected:
void applyBins void applyBins
( (
const label patchI, const label patchI,
const vectorField fN, const vectorField& fN,
const vectorField Md, const vectorField& Md,
const vectorField fT const vectorField& fT
); );
//- Helper function to write bin data //- Helper function to write bin data