Commit 868d5866 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Use reference instead of copy

parent 6148d8c4
......@@ -118,7 +118,7 @@ void Foam::particleForces::cacheFields(const bool store)
if (store && pressureGradient_)
const volVectorField U = mesh_.lookupObject<volVectorField>(UName_);
const volVectorField& U = mesh_.lookupObject<volVectorField>(UName_);
gradUPtr_ = fvc::grad(U).ptr();
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