From: Derek G. <fri...@gm...> - 2018-06-20 20:26:22
|
On Wed, Jun 20, 2018 at 2:06 PM Roy Stogner <roy...@ic...> wrote: > No kidding. How many variables in the group? > For my current problem: 8. But the problems I'll actually be running tend to have more like 64. > You mean using dof_number()? DofMap::dof_indices() will at minimum > return you all the dofs for a single variable. > Yep - sorry about that > No, but (if you're using dof_number()) it sounds like what you want is > a dof_number_group() call instead. Then you can determine vg and vig > *once* rather than in each dof_number() call. > Yep - that would be good! > Wait, I'm being stupid. We don't actually have to make a pointer to > it a member variable! Every time we call dof_number() we're doing so > with a DofMap in hand, so it would be easy to cache lookups there and > then pass a DofMap * to the DofObject as an argument with which to > access that cache. > Sounds good to me! Derek |