Created
October 13, 2014 09:54
-
-
Save wence-/b49860504fef32c463d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/mat/impls/baij/seq/baij2.c b/src/mat/impls/baij/seq/baij2.c | |
| index aa1ed44..ab8e5a5 100644 | |
| --- a/src/mat/impls/baij/seq/baij2.c | |
| +++ b/src/mat/impls/baij/seq/baij2.c | |
| @@ -2709,8 +2709,8 @@ PetscErrorCode MatZeroEntries_SeqBAIJ_Kernel(PetscInt thread_id,Mat A) | |
| PetscInt n,start,end; | |
| Mat_SeqBAIJ *a = (Mat_SeqBAIJ*)A->data; | |
| - start = trstarts[thread_id]; | |
| - end = trstarts[thread_id+1]; | |
| + start = trstarts[thread_id]/A->rmap->bs; | |
| + end = trstarts[thread_id+1]/A->rmap->bs; | |
| n = a->i[end] - a->i[start]; | |
| ierr = PetscMemzero(a->a+a->bs2*a->i[start],a->bs2*n*sizeof(PetscScalar));CHKERRQ(ierr); | |
| return 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment