From 0624edb78b4d59f4847493a836ed445fa6a80bfc Mon Sep 17 00:00:00 2001 From: schrage Date: Wed, 14 Apr 1999 16:05:26 +0000 Subject: [PATCH] Modified the example to account for hanging nodes git-svn-id: https://svn.dealii.org/trunk@1141 0785d39b-7218-0410-832d-ea1e28bc413d --- .../chapter-1.elements/matrix_structure.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deal.II/doc/tutorial/chapter-1.elements/matrix_structure.html b/deal.II/doc/tutorial/chapter-1.elements/matrix_structure.html index 547f713f24..3a601a6a43 100644 --- a/deal.II/doc/tutorial/chapter-1.elements/matrix_structure.html +++ b/deal.II/doc/tutorial/chapter-1.elements/matrix_structure.html @@ -69,6 +69,18 @@ DoFHandler<dim> dof; // Your degrees of freedom must already be distributed smstruct.reinit(dof.n_dofs(),dof.n_dofs(),dof.max_couplings_between_dofs()); + +// Condense the hanging nodes into +// the matrix, taking into account the constraints to the hanging nodes. +// This must be done before the matrix structure is compressed, but only +// on locally refined grids. +// You can skip this part if your grid is not locally refined. + +dof.make_sparsity_pattern(smstruct); +hanging_nodes.clear(); +dof.make_constraint_matrix(hanging_nodes); +hanging_nodes.condense(smstruct); + -- 2.39.5