fenics-tutorial icon indicating copy to clipboard operation
fenics-tutorial copied to clipboard

Tutorial out of date

Open m4r35n357 opened this issue 6 years ago • 4 comments

$ 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

m4r35n357 avatar Sep 02 '18 12:09 m4r35n357

Yes, the FEniCS interface has (unfortunately) changed. Instead of interactive() you must now do

import matplotlib.pyplot as plt
plot(u)
plt.show()

alogg avatar Sep 03 '18 11:09 alogg

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.

m4r35n357 avatar Sep 03 '18 13:09 m4r35n357

Agree, so let's keep this bug report open so it's easy find it.

alogg avatar Sep 03 '18 13:09 alogg

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.

WenyinWei avatar Mar 08 '20 02:03 WenyinWei