From ddb867ee9fd4e432b02d0f594d3ce82fbff82f7b Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 7 Jun 2016 16:28:47 +0100 Subject: [PATCH] Formatting --- src/ODE/sixDOF/sixDOFqODE/sixDOFqODE.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ODE/sixDOF/sixDOFqODE/sixDOFqODE.C b/src/ODE/sixDOF/sixDOFqODE/sixDOFqODE.C index 334b23d5f..d4a386cf6 100644 --- a/src/ODE/sixDOF/sixDOFqODE/sixDOFqODE.C +++ b/src/ODE/sixDOF/sixDOFqODE/sixDOFqODE.C @@ -232,11 +232,11 @@ void Foam::sixDOFqODE::aitkensRelaxation } // Bound the relaxation factor for stability - if(relaxFactorT_ > max) + if (relaxFactorT_ > max) { relaxFactorT_ = max; } - else if(relaxFactorT_ < min) + else if (relaxFactorT_ < min) { relaxFactorT_ = min; } @@ -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)*