]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix another problem in the same way
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 18 Nov 2007 05:33:24 +0000 (05:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 18 Nov 2007 05:33:24 +0000 (05:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@15512 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index 1d81ad58dacf7e510f3c414f8fbaa522c48c8617..42df4a50bb89f3855de8d2a56db978b222edf83f 100644 (file)
@@ -1611,16 +1611,16 @@ void FullMatrix<number>::Tadd (const FullMatrix<number2> &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<rows ; ++i)
     for (unsigned int j=0; j<cols ; ++j)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.