← Back to team overview

dolfin team mailing list archive

Re: [Question #142746]: setting double meshfunctionon subdomain

 

On Tuesday January 25 2011 10:21:29 Anders Logg wrote:
> Question #142746 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/142746
> 
> Anders Logg proposed the following answer:
> 
> On Tue, Jan 25, 2011 at 04:57:29PM -0000, Johan Hake wrote:
> > Question #142746 on DOLFIN changed:
> > https://answers.launchpad.net/dolfin/+question/142746
> > 
> >     Status: Open => Answered
> > 
> > Johan Hake proposed the following answer:
> > 
> > On Monday January 24 2011 18:58:21 Chaffra wrote:
> > > Question #142746 on DOLFIN changed:
> > > https://answers.launchpad.net/dolfin/+question/142746
> > > 
> > >     Status: Answered => Open
> > > 
> > > Chaffra is still having a problem:
> > > Thanks Johan,
> > > but I am still wondering why SubDomain.mark does not accommodate other
> > > types such as double or even vectors of the correct size.
> > 
> > It would make sense to include a mark for double, bool and int. These are
> > the supported formats of MeshFunctions. If no one objects this addition
> > I can add them. We could template the present mark method and make it
> > private. This function could then be overloaded by public versions of
> > the implemented ones.
> 
> Sure, go ahead.

Should eb fixed now.

Johan

> --
> Anders
> 
> > > What I am real
> > > looking for if a way to cell values for a given subdomain with values
> > > from a vector. Conversely is it possible given a meshfunction to
> > > extract the values corresponding to a subdomain?
> > 
> > Not sure what you mean. Do you mean:
> >   MeshFunction<std::vector>
> > 
> > This is not supported.
> > 
> > Johan



Follow ups

References