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

Commit

Permalink
Update to new petsc4py interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Sep 26, 2018
1 parent e831b59 commit 8da0436
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyop2/petsc_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def vecscatters(self):
scatters = []
for d in self:
size = d.size * d.cdim
vscat = PETSc.Scatter().create(d.layout_vec, None, self.layout_vec,
PETSc.IS().createStride(size, offset, 1,
comm=d.comm))
vscat = PETSc.Scatter().createWithData(d.layout_vec, None, self.layout_vec,
PETSc.IS().createStride(size, offset, 1,
comm=d.comm))
offset += size
scatters.append(vscat)
return tuple(scatters)
Expand Down

0 comments on commit 8da0436

Please sign in to comment.