diff --git a/src/finiteVolume/finiteVolume/ddtSchemes/steadyStateDdtScheme/steadyStateDdtScheme.C b/src/finiteVolume/finiteVolume/ddtSchemes/steadyStateDdtScheme/steadyStateDdtScheme.C index 315c9188e..9f18dffa2 100644 --- a/src/finiteVolume/finiteVolume/ddtSchemes/steadyStateDdtScheme/steadyStateDdtScheme.C +++ b/src/finiteVolume/finiteVolume/ddtSchemes/steadyStateDdtScheme/steadyStateDdtScheme.C @@ -267,58 +267,57 @@ steadyStateDdtScheme::fvcDdtPhiCorr U.dimensions() == dimVelocity && phi.dimensions() == dimVelocity*dimArea ) - { - return tmp - ( - new fluxFieldType - ( - IOobject - ( - "ddtPhiCorr(" - + rA.name() + ',' + rho.name() - + ',' + U.name() + ',' + phi.name() + ')', - mesh().time().timeName(), - mesh() - ), - mesh(), - dimensioned::type> - ( - "0", - rA.dimensions()*rho.dimensions()*phi.dimensions()/dimTime, - pTraits::type>::zero - ) - ) - ); - } + { + return tmp + ( + new fluxFieldType + ( + IOobject + ( + "ddtPhiCorr(" + + rA.name() + ',' + rho.name() + + ',' + U.name() + ',' + phi.name() + ')', + mesh().time().timeName(), + mesh() + ), + mesh(), + dimensioned::type> + ( + "zero", + rA.dimensions()*rho.dimensions()*phi.dimensions()/dimTime, + pTraits::type>::zero + ) + ) + ); + } else if ( U.dimensions() == dimVelocity && phi.dimensions() == rho.dimensions()*dimVelocity*dimArea ) - { - return tmp - ( - new fluxFieldType - ( - IOobject - ( - "ddtPhiCorr(" - + rA.name() + ',' + rho.name() - + ',' + U.name() + ',' + phi.name() + ')', - mesh().time().timeName(), - mesh() - ), - mesh(), - dimensioned::type> - ( - "0", - rA.dimensions()*phi.dimensions()/dimTime, - pTraits::type>::zero - ) - ) - ); - } - + { + return tmp + ( + new fluxFieldType + ( + IOobject + ( + "ddtPhiCorr(" + + rA.name() + ',' + rho.name() + + ',' + U.name() + ',' + phi.name() + ')', + mesh().time().timeName(), + mesh() + ), + mesh(), + dimensioned::type> + ( + "zero", + rA.dimensions()*phi.dimensions()/dimTime, + pTraits::type>::zero + ) + ) + ); + } }