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