]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix non-compilability.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 May 2003 16:36:28 +0000 (16:36 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 May 2003 16:36:28 +0000 (16:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@7579 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_gmres.h

index 1be1adaf9d9b63087314dcc1ecbbb2af70ce40e1..91e55568c2c5c4eb8092400eed17a216a25e395b 100644 (file)
@@ -307,12 +307,10 @@ inline VECTOR&
 SolverGMRES<VECTOR>::TmpVectors::operator[] (const unsigned int i) const
 {
   Assert (i+offset<data.size(),
-         ExcIndexRange(i,-offset, data.size()-offset));
+         ExcIndexRange(i, -offset, data.size()-offset));
   
-  i -= offset;
-
-  Assert (data[i] != 0, ExcNotInitialized());
-  return *data[i];
+  Assert (data[i-offset] != 0, ExcNotInitialized());
+  return *data[i-offset];
 }
 
 
@@ -323,13 +321,12 @@ SolverGMRES<VECTOR>::TmpVectors::operator() (const unsigned int i,
 {
   Assert (i+offset<data.size(),
          ExcIndexRange(i,-offset, data.size()-offset));
-  i -= offset;
-  if (data[i] == 0)
+  if (data[i-offset] == 0)
     {
-      data[i] = mem.alloc();
-      data[i]->reinit(temp);
+      data[i-offset] = mem.alloc();
+      data[i-offset]->reinit(temp);
     }
-  return *data[i];
+  return *data[i-offset];
 }
 
 

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.