← Back to team overview

dolfin team mailing list archive

[Question #142746]: setting double meshfunction on subdomain

 

New question #142746 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/142746

This is what I'd like to do:

m = UnitInterval(100)
f = CellFunction('double',m)

class Left(SubDomain):
  def inside(self, x, on_boundary):
    return x[0] < 0.5

left = Left()
left.mark(f,0.01)

Obviously this does not work because mark only accepts MeshFunctionUInt. Is there a simple way to do this with a MeshFunctionDouble?

Thanks,
Chaffra



-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.



Follow ups