From d05f9fc208e90342171111a76d1a77fbb80a344a Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Tue, 10 Jan 2017 15:10:28 +0100 Subject: [PATCH] Minor bugfix in CrankNicolsonDdtScheme::fvcDdtConsistentPhiCorr --- .../CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.C b/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.C index e0d409f4f..e632f8119 100644 --- a/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.C +++ b/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.C @@ -1190,12 +1190,10 @@ CrankNicolsonDdtScheme::fvcDdtConsistentPhiCorr // Evaluate faceU ddt if necessary if (evaluate(faceUDdt0)) { - scalar rDtCoef0 = rDtCoef0_(faceUDdt0).value(); - // Update ddt(faceU) faceUDdt0 = ( - rDtCoef0* + rDtCoef0_(faceUDdt0)* ( faceU.oldTime() - faceU.oldTime().oldTime()