fenics-tutorial
fenics-tutorial copied to clipboard
Tutorial out of date
$ python3 ft01_poisson.py
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Solving linear variational problem.
*** Warning: Degree of exact solution may be inadequate for accurate result in errornorm.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
error_L2 = 0.008235098073354827
error_max = 1.33226762955e-15
Traceback (most recent call last):
File "ft01_poisson.py", line 60, in <module>
interactive()
NameError: name 'interactive' is not defined
Yes, the FEniCS interface has (unfortunately) changed. Instead of interactive()
you must now do
import matplotlib.pyplot as plt
plot(u)
plt.show()
Yes, thanks, I found that, but thought a bug report is the right thing to do. I've seen it in at least one other place in the tutorial since.
Agree, so let's keep this bug report open so it's easy find it.
Hello all, may we fasten the speed to update the tutorial? @OsbertWang has listed almost correct codes in the issus. The unexpected error from the outdated python files are disgusting for newcomers.