dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20981
Re: [Question #142746]: setting double meshfunctionon subdomain
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.
> What I am really
> 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
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
Follow ups