On Wed, 5 Nov 2008, Kirk, Benjamin (JSC-EG) wrote: > Yeah, of course you're right... For only a tiny bit of library code > we can put together something that might be quite useful. So, what > do you think about something like > > std:pair<unsigned int, unsigned int> local_dof_index_range = > DofMap::local_dof_index_range (unsigned int var_num = -1); > > (where I have obviously taken some liberty combining a function call with its > prototype)? > > When called without a var_num argument we just return > > std::make_pair(first_local_index, last_local_index); > > otherwise the relevant bounds for var_num?
Assuming relevant bounds exist. Return (-1, -1) when they don't? Sounds good, anyway. --- Roy ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
