From fae37af352ad0720a16e3cb169b572700a2d7eaa Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 16 Dec 2012 22:29:53 +0000 Subject: [PATCH] GaussSeidelSmoother: minor update --- .../GaussSeidel/GaussSeidelSmoother.C | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/src/OpenFOAM/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C b/src/OpenFOAM/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C index b0cb88ed6e..42bbea8c9c 100644 --- a/src/OpenFOAM/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C +++ b/src/OpenFOAM/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C @@ -107,20 +107,12 @@ void Foam::GaussSeidelSmoother::smooth // To compensate for this, it is necessary to turn the // sign of the contribution. - //FieldField mBouCoeffs(interfaceBouCoeffs_.size()); - // - //forAll(mBouCoeffs, patchi) - //{ - // if (interfaces_.set(patchi)) - // { - // mBouCoeffs.set(patchi, -interfaceBouCoeffs_[patchi]); - // } - //} FieldField& mBouCoeffs = const_cast&> ( interfaceBouCoeffs_ ); + forAll(mBouCoeffs, patchi) { if (interfaces_.set(patchi)) @@ -152,35 +144,35 @@ void Foam::GaussSeidelSmoother::smooth cmpt ); - register scalar curPsi; + register scalar psii; register label fStart; register label fEnd = ownStartPtr[0]; - for (register label cellI=0; cellI