diff --git a/applications/solvers/multiphase/interFoam/alphaEqn.H b/applications/solvers/multiphase/interFoam/alphaEqn.H index 4f44b732b..1f07a7b4b 100644 --- a/applications/solvers/multiphase/interFoam/alphaEqn.H +++ b/applications/solvers/multiphase/interFoam/alphaEqn.H @@ -65,16 +65,16 @@ } } + tmp phiCN(phi); + + // Calculate the Crank-Nicolson off-centred volumetric flux + if (ocCoeff > 0) + { + phiCN = (1.0 - cnCoeff)*phi + cnCoeff*phi.oldTime(); + } + if (MULESCorr) { - tmp phiCN(phi); - - // Calculate the Crank-Nicolson off-centred volumetric flux - if (ocCoeff > 0) - { - phiCN = (1.0 - cnCoeff)*phi + cnCoeff*phi.oldTime(); - } - fvScalarMatrix alpha1Eqn ( #ifdef LTSSOLVE