From: Wolfgang Bangerth Date: Tue, 10 May 2011 15:59:06 +0000 (+0000) Subject: Add a note and clean up code. X-Git-Tag: v8.0.0~4078 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b648da5811b61ba6d6246f3fe6ce93eb3e4547;p=dealii.git Add a note and clean up code. git-svn-id: https://svn.dealii.org/trunk@23687 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/trilinos_sparse_matrix.cc b/deal.II/source/lac/trilinos_sparse_matrix.cc index 274c4c8a07..46a6b96394 100644 --- a/deal.II/source/lac/trilinos_sparse_matrix.cc +++ b/deal.II/source/lac/trilinos_sparse_matrix.cc @@ -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