Commit 8c48065e authored by mattijs's avatar mattijs
Browse files

remove copy

parent 11176914
......@@ -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()")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment