ENH: pass args by reference instead of copy

This commit is contained in:
andy
2011-03-01 17:52:10 +00:00
parent d3dc12967e
commit 7d1e727372
6 changed files with 14 additions and 14 deletions

View File

@ -59,9 +59,9 @@ template<class Type>
typename Foam::IntegrationScheme<Type>::integrationResult
Foam::Analytical<Type>::integrate
(
const Type phi,
const Type& phi,
const scalar dt,
const Type alpha,
const Type& alpha,
const scalar beta
) const
{

View File

@ -81,9 +81,9 @@ public:
//- Perform the integration
virtual typename IntegrationScheme<Type>::integrationResult integrate
(
const Type phi,
const Type& phi,
const scalar dt,
const Type alpha,
const Type& alpha,
const scalar beta
) const;
};

View File

@ -59,9 +59,9 @@ template<class Type>
typename Foam::IntegrationScheme<Type>::integrationResult
Foam::Euler<Type>::integrate
(
const Type phi,
const Type& phi,
const scalar dt,
const Type alpha,
const Type& alpha,
const scalar beta
) const
{

View File

@ -78,9 +78,9 @@ public:
//- Perform the integration
virtual typename IntegrationScheme<Type>::integrationResult integrate
(
const Type phi,
const Type& phi,
const scalar dt,
const Type alpha,
const Type& alpha,
const scalar beta
) const;
};

View File

@ -60,9 +60,9 @@ template<class Type>
typename Foam::IntegrationScheme<Type>::integrationResult
Foam::IntegrationScheme<Type>::integrate
(
const Type phi,
const Type& phi,
const scalar dt,
const Type alpha,
const Type& alpha,
const scalar beta
) const
{
@ -71,9 +71,9 @@ Foam::IntegrationScheme<Type>::integrate
"Foam::IntegrationScheme<Type>::integrationResult"
"Foam::IntegrationScheme<Type>::integrate"
"("
"const Type, "
"const Type&, "
"const scalar, "
"const Type, "
"const Type&, "
"const scalar"
") const"
);

View File

@ -183,9 +183,9 @@ public:
//- Perform the Integration
virtual integrationResult integrate
(
const Type phi,
const Type& phi,
const scalar dt,
const Type alpha,
const Type& alpha,
const scalar beta
) const;
};