On Fri, Jan 23, 2009 at 4:11 PM, John Peterson <jwpeter...@gmail.com> wrote: > It seems like there might be a nice compromise for the MeshIO classes > since they know quite a lot about and need to touch many different > parts of the Mesh. I'm not advocating we make them friends, but > something similar would probably be useful in many instances.
How about: Mesh maintains a set of unique subdomain_ids which gets updated by each call to Mesh::add_elem(). Then Mesh::n_partitions returns the size of that set ??? -- John ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel