On Thu, 24 Jan 2013, Kirk, Benjamin (JSC-EG311) wrote:
> …I swear this method exists somewhere, doesn't it?
I don't remember it and can't find it.
> What I would like to do is
> std::set<> foo = mesh.subdomain_ids()
> or something like that.
I'd be a little scared of RVO not working in problems with large sets
of subdomains. Maybe
> It appears that we basically build this internally to MeshBase::n_subdomains () and return its size, but I'd like the actual set.
Yeah; we ought to factor that out into a separate public method.
And replace the "unsigned int" there with "subdomain_id_type" while
we're at it.