Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oberbichler authored May 2, 2022
1 parent 0012f25 commit dddb71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfem/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def compute_linear_r(self) -> npt.NDArray[np.float64]:
def compute_local(element: Element) -> npt.NDArray[np.float64]:
return element.compute_linear_r()

r = assembler.assemble_vector(compute_local)
assembler.assemble_vector(compute_local, out=r)

return r[:n]

Expand Down

0 comments on commit dddb71e

Please sign in to comment.