mshr.Extrude2D() argument Error

Issue #100 invalid
Matteo created an issue

Hi, I’m using the command mshr.Extrude2D() to generate a 3d mesh starting from a 2d mesh created with mshr.Polygon()

mesh2D = mshr.generate_mesh(domain,4)
g=mshr.Extrude2D(mesh2D,2)
mesh = generate_mesh(g, 4)

where domain is a list of dolfin points. When I run the code I obtain the the following error:

Traceback (most recent call last):
  File "sinusoidal.py", line 39, in <module>
    g=mshr.Extrude2D(mesh2D,2)
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. mshr.cpp.Extrude2D(arg0: mshr.cpp.CSGGeometry, arg1: float)

Invoked with: <dolfin.cpp.mesh.Mesh object at 0x7fda4f7ef040>, 2

Do you know how can I fix it?

Thanks

Comments (2)

  1. Log in to comment