I've resolved the issue by adding a fragment of code that handles sparsity
pattern.
DoFRenumbering::Cuthill_McKee (dof_handler);
hanging_node_constraints.clear();
DoFTools::make_hanging_node_constraints(dof_handler,
hanging_node_constraints);
hanging_node_constraints.close();
DynamicSparsityPattern dsp(dof_handler.n_dofs(), dof_handler.n_dofs());
DoFTools::make_sparsity_pattern(dof_handler, dsp);
hanging_node_constraints.condense(dsp);
sparsity_pattern.copy_from(dsp);
stiffness_matrix.reinit(sparsity_pattern);
mass_matrix.reinit(sparsity_pattern);
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.