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 _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp