← Back to team overview

dolfin team mailing list archive

Re: [Question #153453]: more than 2 subdomains in 2D?

 

On Tuesday April 19 2011 08:28:46 Achim Schroll wrote:
> New question #153453 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/153453
> 
> is it possible to have more than 2 subdomains in 2D?

Yes

Could you please provide a minimal example which fails.

johan
 
> it seems that if I mark by a integer label greater or equal 2
> 
> subdomains = MeshFunction('uint', mesh, 2)
> subdomain0 = Omega0()
> subdomain0.mark(subdomains, label)
> 
> the integral dx(label) returns just zero.
> so the only available labels are 0 and 1.
> Is that reasonable?
> 
> Hilsen, Achim



Follow ups

References