Minor bugfix in CrankNicolsonDdtScheme::fvcDdtConsistentPhiCorr

This commit is contained in:
Vuko Vukcevic 2017-01-10 15:10:28 +01:00
parent 876520462c
commit d05f9fc208

View file

@ -1190,12 +1190,10 @@ CrankNicolsonDdtScheme<Type>::fvcDdtConsistentPhiCorr
// Evaluate faceU ddt if necessary // Evaluate faceU ddt if necessary
if (evaluate(faceUDdt0)) if (evaluate(faceUDdt0))
{ {
scalar rDtCoef0 = rDtCoef0_(faceUDdt0).value();
// Update ddt(faceU) // Update ddt(faceU)
faceUDdt0 = faceUDdt0 =
( (
rDtCoef0* rDtCoef0_(faceUDdt0)*
( (
faceU.oldTime() faceU.oldTime()
- faceU.oldTime().oldTime() - faceU.oldTime().oldTime()