]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a note and clean up code.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 10 May 2011 15:59:06 +0000 (15:59 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 10 May 2011 15:59:06 +0000 (15:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@23687 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/trilinos_sparse_matrix.cc

index 274c4c8a077415051edeb457d8c17422d9aefc06..46a6b96394bab8dfc784eac647589968af0cb520 100644 (file)
@@ -849,18 +849,13 @@ namespace TrilinosWrappers
 
                                      // If the data is not on the
                                      // present processor, we can't
-                                     // continue. Just print out
-                                     // zero.
-
-                                     // TODO: Is this reasonable? Or
-                                     // should we retain the assert
-                                     // call?
+                                     // continue. Just print out zero
+                                     // as discussed in the
+                                     // documentation of this
+                                     // function. if you want error
+                                     // checking, use operator().
     if ((trilinos_i == -1 ) || (trilinos_j == -1))
-      {
-       return 0.;
-       //Assert (false, ExcAccessToNonLocalElement(i, j, local_range().first,
-       //                                local_range().second));
-      }
+      return 0.;
     else
     {
                                      // Check whether the matrix

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.