Fixed missing return for bad flux

This commit is contained in:
Hrvoje Jasak 2013-12-05 15:13:16 +00:00
parent 7b7dce6b60
commit bdd4993527
2 changed files with 16 additions and 1 deletions

View file

@ -488,7 +488,12 @@ EulerDdtScheme<Type>::fvcDdtPhiCorr
( (
ddtIOobject, ddtIOobject,
rDeltaT rDeltaT
*this->fvcDdtPhiCoeff(rho.oldTime(), U.oldTime(), phiAbs.oldTime()) *this->fvcDdtPhiCoeff
(
rho.oldTime(),
U.oldTime(),
phiAbs.oldTime()
)
*( *(
fvc::interpolate(rA)*phiAbs.oldTime() fvc::interpolate(rA)*phiAbs.oldTime()
- (fvc::interpolate(rA*U.oldTime()) & mesh().Sf()) - (fvc::interpolate(rA*U.oldTime()) & mesh().Sf())

View file

@ -318,6 +318,16 @@ steadyStateDdtScheme<Type>::fvcDdtPhiCorr
) )
); );
} }
else
{
FatalErrorIn
(
"steadyStateDdtScheme<Type>::fvcDdtPhiCorr"
) << "dimensions of phi are not correct"
<< abort(FatalError);
return fluxFieldType::null();
}
} }