Error when running heat equation example

When I am running ft03_heat.py from the tutorial, 3.1.3 test problem 1, I am getting an error: ‘dolfin.cpp.la.PETScVector’ object has no attribute ‘array’. What should I do with it? Thank you!

The tutorial is based on the 2016 release of dolfin. The api has changed since then, and should be u.vector().get_local()
There are several other references to the modern framework, see for instance: Is there an updated reference for beginners? - #2 by dokken

3 Likes