From: kronbichler Date: Thu, 26 Jun 2014 12:05:54 +0000 (+0000) Subject: Need to keep constrained entries also when giving both row and column indices if... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e539533cf43da6829115605f7093698b72c931af;p=dealii-svn.git Need to keep constrained entries also when giving both row and column indices if so requested. git-svn-id: https://svn.dealii.org/trunk@33087 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/constraint_matrix.templates.h b/deal.II/include/deal.II/lac/constraint_matrix.templates.h index 2cf08a4f3d..a1a97f6a95 100644 --- a/deal.II/include/deal.II/lac/constraint_matrix.templates.h +++ b/deal.II/include/deal.II/lac/constraint_matrix.templates.h @@ -2869,6 +2869,20 @@ add_entries_local_to_global (const std::vector &row_indices, if (dof_mask.n_rows() == n_local_rows && dof_mask.n_cols() == n_local_cols) dof_mask_is_active = true; + // if constrained entries should be kept, need to add rows and columns of + // those to the sparsity pattern + if (keep_constrained_entries == true) + { + for (size_type i=0; i &row_indices, return; } - // if constrained entries should be kept, need to add rows and columns of - // those to the sparsity pattern - if (keep_constrained_entries == true) - { - for (size_type i=0; i