From 7e07c0ff2c9dbe326f4ad05b0015f47f18302c66 Mon Sep 17 00:00:00 2001 From: Baerbel Jannsen Date: Wed, 25 Aug 2010 14:59:34 +0000 Subject: [PATCH] changed the make_fluy_sparsity_pattern in way that it can handle a ConstraintMatrix git-svn-id: https://svn.dealii.org/trunk@21707 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_tools.cc | 54 +++++++++++++++--------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index a41638dba0..9d280a460e 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -537,9 +537,9 @@ DoFTools::make_flux_sparsity_pattern (const DH &dof, // current cell is owned by the calling // processor. Otherwise, just continue. for (; cell!=endc; ++cell) - // if ((subdomain_id == numbers::invalid_unsigned_int) - // || - // (subdomain_id == cell->subdomain_id())) + if ((subdomain_id == numbers::invalid_unsigned_int) + || + (subdomain_id == cell->subdomain_id())) { const unsigned int n_dofs_on_this_cell = cell->get_fe().dofs_per_cell; dofs_on_this_cell.resize (n_dofs_on_this_cell); @@ -589,14 +589,22 @@ DoFTools::make_flux_sparsity_pattern (const DH &dof, dofs_on_other_cell.resize (n_dofs_on_neighbor); sub_neighbor->get_dof_indices (dofs_on_other_cell); - for (unsigned int i=0; iface(neighbor_face)->set_user_flag (); } } @@ -613,14 +621,22 @@ DoFTools::make_flux_sparsity_pattern (const DH &dof, neighbor->get_dof_indices (dofs_on_other_cell); - for (unsigned int i=0; iface(neighbor_face)->set_user_flag (); } } -- 2.39.5