From 69e2a440bd8ef7b1d7aa20e9acf28b8b459350e2 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Wed, 25 Feb 2009 09:52:55 +0000 Subject: [PATCH] Fix one index in distribute_local_to_global_function. git-svn-id: https://svn.dealii.org/trunk@18426 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/dof_constraints.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/deal.II/include/dofs/dof_constraints.templates.h b/deal.II/deal.II/include/dofs/dof_constraints.templates.h index a1ffb952c5..d237fe415c 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.templates.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.templates.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -986,7 +986,7 @@ distribute_local_to_global (const FullMatrix &local_matrix, // row of the inhomogeneous constraint in // the matrix with Gauss elimination if (use_vectors == true) - global_vector(local_dof_indices[i]) -= local_matrix(j,i) * + global_vector(local_dof_indices[i]) -= local_matrix(i,j) * position_j->inhomogeneity; } else if ((is_constrained_i == true) && @@ -1011,7 +1011,7 @@ distribute_local_to_global (const FullMatrix &local_matrix, if (use_vectors == true) global_vector (position_i->entries[p].first) -= - local_matrix(j,i) * position_i->entries[p].second * + local_matrix(i,j) * position_i->entries[p].second * position_j->inhomogeneity; } -- 2.39.5