On Fri, Sep 23, 2016 at 12:53 AM, Julian Andrej <[email protected]> wrote:
> Hi, > > so a question came up for me when approaching multiple variables in a > generic way. All examples use DenseSubMatrix, DenseSubVector, resize > and then reposition as soon as you have more than one variable. I > understand that repositionining is option because you know the dof > indices anyways. I have looked into Moose and there are no calls to > DenseSubMatrix etc. when handling multiple variables. Basically i want > to avoid changing a lot of the code, when i'm in fact just adding > another variable to the system. Is getting the dof_indices from the > DofMap and then resizing the element Matrix/Vector enough for the > specific variable enough? (That would allow pretty Moose like > "Just-add-a-kernel-behavior" or am i missing something?) > Yes, the DenseSub* classes are handy when you have a fixed number of variables since they allow more "natural" indexing into the element stiffness matrix, and RHS, but they are not as useful when the number of variables is more "fluid". -- John ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
