mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pass args by reference instead of copy
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
@ -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"
|
||||
);
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user