reactingMultiphaseEulerFoam: Fixed potential double usage of rho tmp

This commit is contained in:
Will Bainbridge
2018-12-13 16:37:31 +00:00
parent 4086512c69
commit 9f9576a0e7

View File

@ -12,8 +12,10 @@ for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
phaseModel& phase = fluid.anisothermalPhases()[anisothermalPhasei];
const volScalarField& alpha = phase;
tmp<volScalarField> rho = phase.rho();
tmp<volVectorField> U = phase.U();
tmp<volScalarField> tRho = phase.rho();
const volScalarField& rho = tRho();
tmp<volVectorField> tU = phase.U();
const volVectorField& U = tU();
fvScalarMatrix EEqn
(