Skip to content
Snippets Groups Projects
Commit 8c48065e authored by mattijs's avatar mattijs
Browse files

remove copy

parent 11176914
Branches
Tags
No related merge requests found
......@@ -82,7 +82,7 @@ void Foam::fieldAverage::initialise()
// Add mean fields to the field lists
forAll(faItems_, i)
{
const word fieldName = faItems_[i].fieldName();
const word& fieldName = faItems_[i].fieldName();
if (obr_.foundObject<volScalarField>(fieldName))
{
addMeanField<scalar>(i, meanScalarFields_);
......@@ -117,7 +117,7 @@ void Foam::fieldAverage::initialise()
{
if (faItems_[i].prime2Mean())
{
const word fieldName = faItems_[i].fieldName();
const word& fieldName = faItems_[i].fieldName();
if (!faItems_[i].mean())
{
FatalErrorIn("Foam::fieldAverage::initialise()")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment