Skip to content

Commit c39f9e8

Browse files
authored
Update firedrake/assemble.py
1 parent db497a1 commit c39f9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firedrake/assemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def base_form_assembly_visitor(self, expr, tensor, *args):
509509
# Make a copy to avoid in-place scaling
510510
res = op.petscmat.copy()
511511
res.scale(w)
512-
return matrix.AssembledMatrix(expr, self._bcs, res,
512+
return tensor if tensor else matrix.AssembledMatrix(expr, self._bcs, res,
513513
appctx=self._appctx,
514514
options_prefix=self._options_prefix)
515515
else:

0 commit comments

Comments
 (0)