No constructor defined for UnitDiscMesh
Issue #1066
invalid
Hi all!
With a previous dolfin version, I used something like the following code to generate a disc mesh:
mesh = dolfin.UnitDiscMesh(comm, 100, 2, 2)
With the code below in dolfin v2018.1.0
import dolfin
print(dolfin.__version__)
comm = dolfin.MPI.comm_world
mesh = dolfin.UnitDiscMesh(comm, 100, 2, 2)
I have the following error:
2018.1.0
Traceback (most recent call last):
File "<ipython-input-2-b50ace5105c7>", line 4, in <module>
mesh = dolfin.UnitDiscMesh(comm, 100, 2, 2)
TypeError: dolfin.cpp.generation.UnitDiscMesh: No constructor defined!
Any tip on using UnitDiscMesh now?
Comments (3)
-
-
reporter This works. Thank you
-
- changed status to invalid
- Log in to comment
Use
UnitDiscMesh.create
(see poisson-disc demo).