On Wed, Nov 5, 2014 at 11:08 AM, Benjamin Kehlet <benja...@simula.no> wrote: > 2014-11-05 9:47 GMT+01:00 Johannes Ring <joha...@simula.no>: >> On Tue, Nov 4, 2014 at 6:33 PM, Henrik Garde <h...@dtu.dk> wrote: >>> The newest version of Dolfin 1.4 in the fenics PPA for Ubuntu 14.04 does >>> not seem to be compiled with CGAL (worked fine before an update today). >> >> Yes, CGAL support was disabled in favor of mshr: >> >> https://bitbucket.org/benjamik/mshr/wiki/Home >> >>>> has_cgal() >>> False >>> >>> This prevents for instance the use of CircleMesh, and gives the error: >>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> File "/usr/lib/python2.7/dist-packages/dolfin/cpp/mesh.py", line 8006, in >>> __init__ >>> _mesh.CircleMesh_swiginit(self,_mesh.new_CircleMesh(*args)) >>> RuntimeError: >> >> With mshr you can create a circle mesh for instance like this: >> >> import dolfin >> from mshr import * >> mesh = generate_mesh(Circle(dolfin.Point(0, 0), 1), 32) >> dolfin.plot(mesh, interactive=True) >> >> @Benjamin: Will CircleMesh be available in mshr to make it more >> backwards compatible with older DOLFIN? > > Not currently, but it would be easy to add. I guess there was a > SphereMesh in Dolfin as well? Anything else?
Yes, in addition to CircleMesh and SphereMesh, it was also at least EllipseMesh and EllipsoidMesh. Johannes > Benjamin > >> >> Johannes >> >>> *** >>> ------------------------------------------------------------------------- >>> *** DOLFIN encountered an error. If you are not able to resolve this issue >>> *** using the information listed below, you can ask for help at >>> *** >>> *** fen...@fenicsproject.org >>> *** >>> *** Remember to include the error message listed below and, if possible, >>> *** include a *minimal* running example to reproduce the 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. >>> *** Process: unknown >>> *** >>> *** DOLFIN version: 1.4.0 >>> *** Git changeset: unknown >>> *** >>> ------------------------------------------------------------------------- >>> _______________________________________________ >>> fenics-support mailing list >>> fenics-support@fenicsproject.org >>> http://fenicsproject.org/mailman/listinfo/fenics-support _______________________________________________ fenics-support mailing list fenics-support@fenicsproject.org http://fenicsproject.org/mailman/listinfo/fenics-support