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
|
typename Foam::IntegrationScheme<Type>::integrationResult
|
||||||
Foam::Analytical<Type>::integrate
|
Foam::Analytical<Type>::integrate
|
||||||
(
|
(
|
||||||
const Type phi,
|
const Type& phi,
|
||||||
const scalar dt,
|
const scalar dt,
|
||||||
const Type alpha,
|
const Type& alpha,
|
||||||
const scalar beta
|
const scalar beta
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
|||||||
@ -81,9 +81,9 @@ public:
|
|||||||
//- Perform the integration
|
//- Perform the integration
|
||||||
virtual typename IntegrationScheme<Type>::integrationResult integrate
|
virtual typename IntegrationScheme<Type>::integrationResult integrate
|
||||||
(
|
(
|
||||||
const Type phi,
|
const Type& phi,
|
||||||
const scalar dt,
|
const scalar dt,
|
||||||
const Type alpha,
|
const Type& alpha,
|
||||||
const scalar beta
|
const scalar beta
|
||||||
) const;
|
) const;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -59,9 +59,9 @@ template<class Type>
|
|||||||
typename Foam::IntegrationScheme<Type>::integrationResult
|
typename Foam::IntegrationScheme<Type>::integrationResult
|
||||||
Foam::Euler<Type>::integrate
|
Foam::Euler<Type>::integrate
|
||||||
(
|
(
|
||||||
const Type phi,
|
const Type& phi,
|
||||||
const scalar dt,
|
const scalar dt,
|
||||||
const Type alpha,
|
const Type& alpha,
|
||||||
const scalar beta
|
const scalar beta
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
|||||||
@ -78,9 +78,9 @@ public:
|
|||||||
//- Perform the integration
|
//- Perform the integration
|
||||||
virtual typename IntegrationScheme<Type>::integrationResult integrate
|
virtual typename IntegrationScheme<Type>::integrationResult integrate
|
||||||
(
|
(
|
||||||
const Type phi,
|
const Type& phi,
|
||||||
const scalar dt,
|
const scalar dt,
|
||||||
const Type alpha,
|
const Type& alpha,
|
||||||
const scalar beta
|
const scalar beta
|
||||||
) const;
|
) const;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -60,9 +60,9 @@ template<class Type>
|
|||||||
typename Foam::IntegrationScheme<Type>::integrationResult
|
typename Foam::IntegrationScheme<Type>::integrationResult
|
||||||
Foam::IntegrationScheme<Type>::integrate
|
Foam::IntegrationScheme<Type>::integrate
|
||||||
(
|
(
|
||||||
const Type phi,
|
const Type& phi,
|
||||||
const scalar dt,
|
const scalar dt,
|
||||||
const Type alpha,
|
const Type& alpha,
|
||||||
const scalar beta
|
const scalar beta
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
@ -71,9 +71,9 @@ Foam::IntegrationScheme<Type>::integrate
|
|||||||
"Foam::IntegrationScheme<Type>::integrationResult"
|
"Foam::IntegrationScheme<Type>::integrationResult"
|
||||||
"Foam::IntegrationScheme<Type>::integrate"
|
"Foam::IntegrationScheme<Type>::integrate"
|
||||||
"("
|
"("
|
||||||
"const Type, "
|
"const Type&, "
|
||||||
"const scalar, "
|
"const scalar, "
|
||||||
"const Type, "
|
"const Type&, "
|
||||||
"const scalar"
|
"const scalar"
|
||||||
") const"
|
") const"
|
||||||
);
|
);
|
||||||
|
|||||||
@ -183,9 +183,9 @@ public:
|
|||||||
//- Perform the Integration
|
//- Perform the Integration
|
||||||
virtual integrationResult integrate
|
virtual integrationResult integrate
|
||||||
(
|
(
|
||||||
const Type phi,
|
const Type& phi,
|
||||||
const scalar dt,
|
const scalar dt,
|
||||||
const Type alpha,
|
const Type& alpha,
|
||||||
const scalar beta
|
const scalar beta
|
||||||
) const;
|
) const;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user