From: David K. <dkn...@se...> - 2012-08-21 21:28:19
|
On 08/21/2012 05:14 PM, John Peterson wrote: > On Tue, Aug 21, 2012 at 2:23 PM, David Knezevic > <dkn...@se...> wrote: >> I have a system with many decoupled variables, so I'd like to set >> entries of DofMap::_dof_coupling to zero (I presume that this means we >> get a sparser sparsity pattern, yes?) >> >> How is this meant to be done, do I set the _dof_coupling entries to zero >> after adding variables but before calling init()? > Basically. I think you have to allocate it yourself, either on the > stack or on the heap, and set the _dof_coupling pointer manually > (doesn't seem to be a nice interface for this). > > This is a little confusing... our underscore-prefixed variables are > usually protected/private. Guess we should change that for > consistency. > Thanks, that works. I should've figured it out myself, but I'm lazy ;) |