On Wed, Nov 12, 2014 at 12:15 AM, Brian Drawert <[email protected]> wrote:
> Hi Marco,
>
> As you suggested, I changed all the calls from CSG from 'dolfin' to 'mshr'.
> However this still fails, but in new ways:
>
> Traceback (most recent call last):
> File "cylinder_demo3D.py", line 82, in <module>
> model = cylinderDemo3D()
> File "cylinder_demo3D.py", line 38, in __init__
> pt1 = mshr.Point(MAX_X_DIM, 0, 0)
> AttributeError: 'module' object has no attribute 'Point'
>
> The relevant code is here:
>
> pt1 = mshr.Point(MAX_X_DIM, 0, 0)
> pt2 = mshr.Point(MIN_X_DIM, 0, 0)
> cylinder = mshr.Cylinder(pt1, pt2, 1.0)
This should work:
pt1 = dolfin.Point(MAX_X_DIM, 0, 0)
pt2 = dolfin.Point(MIN_X_DIM, 0, 0)
cylinder = mshr.Cylinder(pt1, pt2, 1.0)
Johannes
> self.mesh = pyurdme.URDMEMesh(mesh=mshr.Mesh(cylinder, 32))
>
>
>
> On Nov 10, 2014, at 11:43 PM, Marco Morandini <[email protected]>
> wrote:
>
>>> cylinder = dolfin.Cylinder(pt1, pt2, 1.0)
>> ^^^^^^
>> the CSG is now in mshr, and not in dolfin.
>>
>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support