Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Jan 30, 2024
1 parent a9acf75 commit 0c8a05b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ngsPETSc/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def createPETScDMPlex(self, mesh):
else:
plex = PETSc.DMPlex().createFromCellList(3,
np.zeros((0, 4), dtype=np.int32),
np.zeros((0, 3), dtype=np.double), comm=comm)
np.zeros((0, 3), dtype=np.double),
comm=comm)
self.petscPlex = plex
elif self.ngMesh.dim == 2:
if comm.rank == 0:
Expand All @@ -209,5 +210,6 @@ def createPETScDMPlex(self, mesh):
else:
plex = PETSc.DMPlex().createFromCellList(2,
np.zeros((0, 3), dtype=np.int32),
np.zeros((0, 2), dtype=np.double), comm=comm)
np.zeros((0, 2), dtype=np.double),
comm=comm)
self.petscPlex = plex

0 comments on commit 0c8a05b

Please sign in to comment.