From 6c1437520253b78cc36443f2a2271e623cc946f0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 13 Feb 2013 13:48:48 +0000 Subject: [PATCH] Fix a thinko that won't work for rectangular matrices. git-svn-id: https://svn.dealii.org/trunk@28361 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/full_matrix.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deal.II/include/deal.II/lac/full_matrix.h b/deal.II/include/deal.II/lac/full_matrix.h index 5ff87144f3..e4cf4d500d 100644 --- a/deal.II/include/deal.II/lac/full_matrix.h +++ b/deal.II/include/deal.II/lac/full_matrix.h @@ -1,7 +1,7 @@ //--------------------------------------------------------------------------- // $Id$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1524,7 +1524,7 @@ FullMatrix::copy_from (const MATRIX &M) // loop over the elements of the argument matrix row by row, as suggested // in the documentation of the sparse matrix iterator class, and // copy them into the current object - for (unsigned int row = 0; row < M.n(); ++row) + for (unsigned int row = 0; row < M.m(); ++row) { const typename MATRIX::const_iterator end_row = M.end(row); for (typename MATRIX::const_iterator entry = M.begin(row); @@ -1861,4 +1861,3 @@ FullMatrix::print (STREAM &s, DEAL_II_NAMESPACE_CLOSE #endif - -- 2.39.5