Removed unnecessary bPrime update on reverseSweep in BlockGaussSeidel preconditioner
This commit is contained in:
parent
22a2e59c3b
commit
2bebc90eaa
1 changed files with 2 additions and 12 deletions
|
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue