Commits

Jed Brown committed a7ff49e

VecResetArray() required in PCApplyTranspose_BJacobi_Multiblock

Hg-commit: 2f07246aca895ea48833c0535c2b13428c772840

Comments (0)

Files changed (1)

src/ksp/pc/impls/bjacobi/bjacobi.c

     ierr = PetscLogEventBegin(PC_ApplyTransposeOnBlocks,jac->ksp[i],bjac->x[i],bjac->y[i],0);CHKERRQ(ierr);
     ierr = KSPSolveTranspose(jac->ksp[i],bjac->x[i],bjac->y[i]);CHKERRQ(ierr);
     ierr = PetscLogEventEnd(PC_ApplyTransposeOnBlocks,jac->ksp[i],bjac->x[i],bjac->y[i],0);CHKERRQ(ierr);
+
+    ierr = VecResetArray(bjac->x[i]);CHKERRQ(ierr);
+    ierr = VecResetArray(bjac->y[i]);CHKERRQ(ierr);
   }
   ierr = VecRestoreArray(x,&xin);CHKERRQ(ierr);
   ierr = VecRestoreArray(y,&yin);CHKERRQ(ierr);