]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix indexing bug. (Takeover from main branch)
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 26 May 2000 11:55:49 +0000 (11:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 26 May 2000 11:55:49 +0000 (11:55 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-0@2954 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 40e031886c033f393d326f0ad729b2e9e9e9bd10..f4cfe0bea0bdc68cc1f8d8449c93c99044f4caff 100644 (file)
@@ -295,10 +295,10 @@ void FullMatrix<number>::Tvmult (Vector<number2>       &dst,
   number2 s;
   const unsigned int size_m = m(),
                     size_n = n();
-  for (i=0; i<size_m; ++i)
+  for (i=0; i<size_n; ++i)
   {
     s = 0.;
-    for (j=0; j<size_n; ++j)
+    for (j=0; j<size_m; ++j)
       s += src(j) * el(j,i);
     if(!adding) dst(i) = s;
     else dst(i) += s;

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.