meshpro / dmsh

:spider_web: Simple mesh generator inspired by distmesh.
GNU General Public License v3.0
210 stars 25 forks source link

Upgrade results in error #61

Closed griff10000 closed 3 years ago

griff10000 commented 3 years ago

I have just upgraded to dmsh-0.2.10 and optimesh-0.8.0 and tried to run the following test example,

# Ref: https://pypi.org/project/dmsh/
import dmsh

geo = dmsh.Circle([0.0, 0.0], 1.0)
X, cells = dmsh.generate(geo, 0.1)

# optionally optimize the mesh
import optimesh

X, cells = optimesh.cvt.quasi_newton_uniform_full(X, cells, 1.0e-10, 100)

# visualize the mesh
dmsh.helpers.show(X, cells, geo)

but it throws the following error:

  File "C:\MathsProjects\python\dmsh\circle.py", line 11, in <module>
    X, cells = optimesh.cvt.quasi_newton_uniform_full(X, cells, 1.0e-10, 100)

AttributeError: module 'optimesh.cvt' has no attribute 'quasi_newton_uniform_full'

Any advice on how the optimesh statement should be changed?

By the way I also have meshplex-0.15.5 installed.