Initialize function to 0 in dolfinx

If you simply want to initialize it to zero, I would suggest
u.x.set(0)

3 Likes