]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a rather nasty bug.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 5 Sep 2002 14:43:23 +0000 (14:43 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 5 Sep 2002 14:43:23 +0000 (14:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@6361 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/table.h

index be0f1f4e399b45669b8e4deaf793fb692dec93e5..b2f88f1f4068eace49ae3151b6530cab0fa87273 100644 (file)
@@ -1639,7 +1639,7 @@ const T &
 Table<2,T>::el (const unsigned int i,
                 const unsigned int j) const
 {
-  return this->val[i*this->table_size[0]+j];
+  return this->val[i*this->table_size[1]+j];
 };
 
 
@@ -1650,7 +1650,7 @@ T &
 Table<2,T>::el (const unsigned int i,
                 const unsigned int j)
 {
-  return this->val[i*this->table_size[0]+j];
+  return this->val[i*this->table_size[1]+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.