On 04/08/2013 01:43 PM, Kirk, Benjamin (JSC-EG311) wrote: > On Apr 8, 2013, at 11:06 AM, David Knezevic <dkneze...@seas.harvard.edu> > wrote: > >> The scenario I have in mind is that I have a large mesh, which is built >> up of "components" where each component is marked with a subdomain_id >> (since we need to be able to know which "component" we're on during >> matrix assembly). But within each component we also need another >> subdomain_ids to indicate different material properties etc. >> >> So I need an "intersection" of subdomain IDs in order to do the matrix >> assembly. > Hmm… how many components? One approach is to 'mash' the material and > component id into a single, larger, unique id: > > combined_id = material_id + 100*(component_id) > > comes to mind, where then > > material_id = combined_id % 100 > component_id = combined_id / 100;
Yeah, that sounds good to me. Lots of options here :) David ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel