Hi Roy,

Thank you very much for your reply. I do have a single VariableGroup.

Best,
Harshad

On Mon, May 7, 2018 at 5:45 PM, Roy Stogner <royst...@ices.utexas.edu>
wrote:

>
> On Mon, 7 May 2018, Harshad Sahasrabudhe wrote:
>
> I need to add a group of variables to my CondensedEigenSystem. My current
>> code handles a single variable. What would be the shortest way to update
>> my
>> code to accommodate the variable group? I would like the PetscMatrix to be
>> block sparse with a node major ordering. What should I set in DofMap in
>> the
>> code to get this done without using the " --node_major_dofs " command line
>> option?
>>
>
> If you add variables which are all of the exact same FE type and
> subdomain restriction, and you add them consecutively without any
> variables of different types in between, and if you haven't manually
> disabled System::identify_variable_groups(), then libMesh should put
> them all in the same VariableGroup.  If you *only* have one
> VariableGroup after everything is added, then the matrix ordering ends
> up looking like node_major_dofs.
>
> If you have different variable types or subdomain restrictions, then
> right now I believe the only way to get node_major_dofs ordering is
> --node_major_dofs.  A patch adding a programmatic control option would
> certainly be appreciated.
> ---
> Roy
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to