]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add doc for a traphole.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 May 1999 09:24:21 +0000 (09:24 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 May 1999 09:24:21 +0000 (09:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@1352 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_matrix.cc

index 4c7a1a33e48bb46035b38142cafae5fb1238eb7f..d1ae0644c541874a50af15bf4a265e1ba2610e18 100644 (file)
@@ -366,6 +366,14 @@ SparseMatrixStruct::operator () (const unsigned int i, const unsigned int j) con
 
                                   // all other entries are sorted, so
                                   // we can use a binary seach algorithm
+                                  //
+                                  // note that the entries are only sorted
+                                  // upon compression, so this would fail
+                                  // for non-compressed sparsity patterns;
+                                  // however, that is why the Assertion is
+                                  // at the top of this function, so it
+                                  // may not be called for noncompressed
+                                  // structures.
   const int * const p = lower_bound (&colnums[rowstart[i]+1],
                                     &colnums[rowstart[i+1]],
                                     static_cast<signed int>(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.