- edited description
Tutorials produces error/warnings in Ubuntu 14.04
Using 64bit Ubuntu 14.04, I install Fenics through 'sudo apt-get install fenics'. I try and run the two tutorials provided here: http://fenicsproject.org/documentation/tutorial/fundamentals.html#the-poisson-equation
For the first (d1_p2D.py) I get the error
*** -------------------------------------------------------------------------
*** Warning: UnitSquare has been deprecated in DOLFIN version 1.1.0.
*** The class UnitSquare has been replaced by UnitSquareMesh.
*** -------------------------------------------------------------------------
Which I managed to fix myself (doh), but I still think that the very first tutorial should not contain warnings.
For the second (membrane1.py) however, I got the following error
*** -------------------------------------------------------------------------
*** Error: Unable to generate ellipse mesh.
*** Reason: Generation of ellipse meshes requires DOLFIN to be configured with CGAL.
*** Where: This error was encountered inside EllipseMesh.cpp.
which I was not able to fix. The reason for the title and me blaming Ubuntu 14.04 is the issue reported here: http://fenicsproject.org/qa/3360/have-upgraded-ubuntu-dolfin-doesnt-work-solve-that-problem I don't know if this is the actual cause or if it is something else.
EDIT: formatting
Comments (3)
-
reporter -
reporter So I ran two more tests. Just to be sure that I didn't have some corrupt system, I tried this with a fresh and clean Ubuntu 14.04 installation, only running 'sudo apt-get install fenics' followed by running the two tutorials. Same results.
I tried to install fenics and run this on my Ubuntu 12.04 box and I did get different error messages:
Traceback (most recent call last): File "Poisson.py", line 13, in <module> mesh = UnitSquare(6, 4) NameError: name 'UnitSquare' is not defined
It did not say what the replacement functions was (i.e. UnitSquareMesh for the former, CircleMesh for the latter tutorial), which I found unfortunate, but when swapping the function names, and adding arguments for CircleMesh, everything worked perfectly on my 12.04 box. However, this was not the case for 14.04. The error of dolfin not being able to create circles persisted, even when I swapped UnitCircle out with CircleMesh.
-
- changed status to invalid
Thanks for reporting the issue, but this is not a dolfin bug. There have been similar reports in https://bitbucket.org/fenics-project/fenics-web, where they belong. I will talk to Hans Petter and see to it that the tutorial is updated.
- Log in to comment