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
mesh.subdomain_ids(std::set<subdomain_id_type>& foo)
?

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.
---
Roy
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to