From: Roy S. <roy...@ic...> - 2008-11-06 00:56:12
|
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 |