Formatting

This commit is contained in:
Hrvoje Jasak 2016-06-07 16:28:47 +01:00
parent 14e1dd2233
commit ddb867ee9f

View file

@ -245,7 +245,11 @@ void Foam::sixDOFqODE::aitkensRelaxation
const scalar saveOldRelFacR = oldRelaxFactorR_;
oldRelaxFactorR_ = relaxFactorR_;
if(magSqr(OmegaDot_[0] - OmegaDotn_[1] - OmegaDot_[1] - OmegaDotn_[2]) > SMALL)
if
(
magSqr(OmegaDot_[0] - OmegaDotn_[1] - OmegaDot_[1] - OmegaDotn_[2])
> SMALL
)
{
relaxFactorR_ =
saveOldRelFacR + (saveOldRelFacR - 1)*