fv::zeroDimensionalMassSource: Prevent field copy

This commit is contained in:
Will Bainbridge
2023-04-18 13:43:06 +01:00
parent 060690b6fa
commit 99b36f646a

View File

@ -65,7 +65,7 @@ Foam::fv::zeroDimensionalMassSource::calcM0D() const
if (thermo.phaseName() != word::null)
{
const volScalarField alpha =
const volScalarField& alpha =
mesh().lookupObject<volScalarField>
(
IOobject::groupName("alpha", phaseName_)