Folks,

I am running dolfin version 1.4 on KUbuntu 14.04.  My version of dolfin was
recently updated from the repository.

I used dolfin-get-demos to retrieve the dolfin demos for this new version,
but the csg-2D demos still use cgal graphics.  I understand cgal graphics
is no longer included.

I looked at the mshr tutorial and tried:

circle_x = 0.5
circle_y = 0.5
circle_r = 0.25
from mshr import *
domain = Rectangle(Point(-1.0,-1.0), Point(1.,1.))\
            - Circle(Point(circle_x,circle_y),circle_r)
mesh = Mesh ( domain, 10 )

I observe the following error:
    % python heat_explicit_01.py
    Traceback (most recent call last):
      File "heat_explicit_01.py", line 39, in <module>
        mesh = Mesh ( domain, 10 )
      File "/usr/lib/python2.7/dist-packages/dolfin/mesh/meshes.py", line
66,
    in __init__
        cpp.Mesh.__cppinit__(self, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/dolfin/cpp/mesh.py", line
1592, in

- Ignored:
    __init__
        _mesh.Mesh_swiginit(self,_mesh.new_Mesh(*args))
    TypeError: in method 'MPI_Comm', argument 1 of type 'new_Mesh'

How do I generate a mesh from the mshr-generated domain?

-- 
Mike Sussman
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to