]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Indent, leave a comment.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Feb 2008 17:09:46 +0000 (17:09 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Feb 2008 17:09:46 +0000 (17:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@15808 0785d39b-7218-0410-832d-ea1e28bc413d

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

index c0a0c75e81b81ad596059805b0f502b5b5d7d17b..fb3d6722abe18bf2b185bd844306cd38be45fcbc 100644 (file)
@@ -75,14 +75,14 @@ void SparseILU<number>::decompose (const SparseMatrix<somenumber> &matrix,
   (indices=0..N-1)
   
   for i=1..N-1
-  a[i-1,i-1] = a[i-1,i-1]^{-1}
+    a[i-1,i-1] = a[i-1,i-1]^{-1}
 
-  for k=0..i-1
-  a[i,k] = a[i,k] * a[k,k]
+    for k=0..i-1
+      a[i,k] = a[i,k] * a[k,k]
 
-  for j=k+1..N-1
-  if (a[i,j] exists & a[k,j] exists)
-  a[i,j] -= a[i,k] * a[k,j]
+      for j=k+1..N-1
+        if (a[i,j] exists & a[k,j] exists)
+          a[i,j] -= a[i,k] * a[k,j]
 */
 
 
@@ -97,7 +97,7 @@ void SparseILU<number>::decompose (const SparseMatrix<somenumber> &matrix,
                                       // and since it makes the backward
                                       // step when applying the decomposition
                                       // significantly faster
-      AssertThrow((this->global_entry(rowstart_indices[row-1]) !=0),
+      AssertThrow((this->global_entry(rowstart_indices[row-1]) != 0),
                  ExcDivideByZero());
       
       this->global_entry (rowstart_indices[row-1])
@@ -138,6 +138,10 @@ void SparseILU<number>::decompose (const SparseMatrix<somenumber> &matrix,
               j<&column_numbers[rowstart_indices[row+1]];
               ++j)
            {
+                                              // get the locations of
+                                              // entries ij and kj in
+                                              // the matrix. note that k<i, k<j
+             
 //TODO:[WB] make code faster by using the following comment          
                                               // note: this inner loop could
                                               // be made considerably faster

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.