Permalink
Browse files

Merge branch 'prbrune/pckaczmarz' into next

* prbrune/pckaczmarz:
  PCKACZMARZ: Sign mistake for symmetric application
  • Loading branch information...
2 parents cda08f4 + d6d3918 commit 6d20c82d7ea04f6e033d40017aaf8c1cba5ed67f @prbrune prbrune committed Feb 19, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ksp/pc/impls/kaczmarz/kaczmarz.c
@@ -70,7 +70,7 @@ static PetscErrorCode PCApply_Kaczmarz(PC pc,Vec x,Vec y)
if (anrm > 0.) {
for (j=0;j<ncols;j++) {
if (cols[j] >= ys && cols[j] < ye) {
- yarray[cols[j]-ys] -= vals[j]*lambda*r/anrm;
+ yarray[cols[j]-ys] += vals[j]*lambda*r/anrm;
}
}
}

0 comments on commit 6d20c82

Please sign in to comment.