Skip to content

Commit 56546f4

Browse files
committed
fix assert
1 parent e4aba8e commit 56546f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/dolfinx/la/petsc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def assign(
175175
"""
176176
if x1.getType() == PETSc.Vec.Type().NEST:
177177
x1_nest = x1.getNestSubVecs()
178-
assert isinstance(x0, PETSc.Vec)
178+
assert isinstance(x0, Sequence)
179179
for _x0, _x1 in zip(x0, x1_nest):
180180
with _x1.localForm() as x:
181181
x.array_w[:] = _x0

0 commit comments

Comments
 (0)