Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
sparsity: Expose get_preallocation routine
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Nov 2, 2018
1 parent e138af0 commit 6c81d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/sparsity.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cdef void restore_writeable(map, flag):
map.values_with_halo.setflags(write=flag)


cdef get_preallocation(PETSc.Mat preallocator, PetscInt nrow):
def get_preallocation(PETSc.Mat preallocator, PetscInt nrow):
cdef:
_p_Mat *A = <_p_Mat *>(preallocator.mat)
Mat_Preallocator *p = <Mat_Preallocator *>(A.data)
Expand Down

0 comments on commit 6c81d6a

Please sign in to comment.