From: Baerbel Jannsen Date: Wed, 25 Aug 2010 14:59:34 +0000 (+0000) Subject: changed the make_fluy_sparsity_pattern in way that it can handle a X-Git-Tag: v8.0.0~5691 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e07c0ff2c9dbe326f4ad05b0015f47f18302c66;p=dealii.git 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 --- 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 (); } }