From cf5037e10a05a3770d9385b1adbd81e012516aa2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 18 Nov 2007 05:33:24 +0000 Subject: [PATCH] Fix another problem in the same way git-svn-id: https://svn.dealii.org/trunk@15512 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/full_matrix.templates.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index 1d81ad58da..42df4a50bb 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -1611,16 +1611,16 @@ void FullMatrix::Tadd (const FullMatrix &src, ExcIndexRange (dst_offset_i, 0, m())); Assert (dst_offset_j < n(), ExcIndexRange (dst_offset_j, 0, n())); - Assert (src_offset_i < src.m(), - ExcIndexRange (src_offset_i, 0, src.m())); - Assert (src_offset_j < src.n(), - ExcIndexRange (src_offset_j, 0, src.n())); + Assert (src_offset_i < src.n(), + ExcIndexRange (src_offset_i, 0, src.n())); + Assert (src_offset_j < src.m(), + ExcIndexRange (src_offset_j, 0, src.m())); // Compute maximal size of copied block const unsigned int rows = std::min (m() - dst_offset_i, - src.m() - src_offset_i); + src.m() - src_offset_j); const unsigned int cols = std::min (n() - dst_offset_j, - src.n() - src_offset_j); + src.n() - src_offset_i); for (unsigned int i=0; i