I trying to implement code from this discussion, however “mshr._generate mesh” seems to be longer available in the current version with pybind?
import mshr
from mshr import *
from dolfin import *
if MPI.rank(MPI.comm_world) == 0:
mesh = Mesh(MPI.comm_self)
domain = Circle(Point(0.0,0.0),2,0) - Circle(Point(0.0,0.0),1.0)
mshr._generate(mesh, domain, 30)
else:
mesh = None
print(mesh)
Any ideas how to go about it?