Use exact instead of approximate inverted diagonal blocks for ChowPatel

This commit is contained in:
Tong Dong Qiu 2022-09-22 10:16:32 +02:00
parent 42410d408f
commit 24f8f7c857

View File

@ -756,9 +756,7 @@ void ChowPatelIlu<block_size>::decomposition(
for(int i = 0; i < Nb; ++i) {
for(int k = Ut->rowPointers[i]; k < Ut->rowPointers[i+1]; ++k) {
int j = Ut->colIndices[k];
if (j == i) {
inverter(Ut->nnzValues + k * bs * bs, invDiagVals + i * bs * bs);
} else {
if (j != i) {
++ptr[j+1];
}
}