]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Corrected an access error to vector components using the () operator.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Aug 2008 15:27:26 +0000 (15:27 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Aug 2008 15:27:26 +0000 (15:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@16652 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_vector.cc

index 4cabc899b83fa51a8001db91b03f3c40123e3de4..c8c047f5dc26816175c98ff837f6bcdca21e622b 100755 (executable)
@@ -39,7 +39,8 @@ namespace TrilinosWrappers
                   (static_cast<signed int>(index) <= vector.map.MaxMyGID()),
                   ExcAccessToNonLocalElement (index, vector.map.MinMyGID(),
                                               vector.map.MaxMyGID()-1));
-      return *(*(vector.vector))[index];
+
+      return (*(vector.vector))[0][index];
     }
   }
 

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.