Removed unnecessary bPrime update on reverseSweep in BlockGaussSeidel preconditioner

This commit is contained in:
Vuko Vukcevic 2015-09-10 10:22:13 +02:00 committed by Hrvoje Jasak
parent 22a2e59c3b
commit 2bebc90eaa

View file

@ -204,13 +204,7 @@ void Foam::BlockGaussSeidelPrecon<Type>::BlockSweep
// Finish current x
curX = mult(dD[rowI], curX);
// Distribute the neighbour side using current x
for (curCoeff = fStart; curCoeff < fEnd; curCoeff++)
{
// lower = upper transposed
bPrime_[u[curCoeff]] -=
mult(mult.transpose(upper[curCoeff]), curX);
}
// No need to update bPrime on reverse sweep. VV, 10/Sep/2015.
}
}
}
@ -312,11 +306,7 @@ void Foam::BlockGaussSeidelPrecon<Type>::BlockSweep
// Finish current x
curX = mult(dD[rowI], curX);
// Distribute the neighbour side using current x
for (curCoeff = fStart; curCoeff < fEnd; curCoeff++)
{
bPrime_[u[curCoeff]] -= mult(lower[curCoeff], curX);
}
// No need to update bPrime on reverse sweep. VV, 10/Sep/2015.
}
}
}