From 7b7dce6b60294514f54e5afde6c72a0f5fd195f7 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 5 Dec 2013 15:09:33 +0000 Subject: [PATCH] Clean-up --- .../steadyStateDdtScheme.C | 93 +++++++++---------- 1 file changed, 46 insertions(+), 47 deletions(-) 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 + ) + ) + ); + } }