I am going trough this FEniCSx Tutorial:
https://bleyerj.github.io/comet-fenicsx/tours/linear_problems/axisymmetric_elasticity/axisymmetric_elasticity.html
and I ran into a problem with this part of the code:
u = fem.Function(V, name="Displacement")
ur = u.sub(0).collapse()
ur_FEM = ur.vector.array[bottom_dofsx]
It returns the error
Traceback (most recent call last):
File "/home/codes/axis_symmetry.py", line 119, in <module>
ur_FEM = ur.vector.array[bottom_dofsx]
^^^^^^^^^
AttributeError: 'Function' object has no attribute 'vector'
The code is written for version 0.8 and I want to run it using version 0.9, so I expect there to be a breaking change for this release. None of the changes listed at Release v0.9.0 · FEniCS/dolfinx · GitHub seem to help me. How did it change and how can I update the code to make it work for 0.9?