]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Write out some better information in case of error.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 1 Mar 2009 22:59:31 +0000 (22:59 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 1 Mar 2009 22:59:31 +0000 (22:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@18439 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/trilinos_sparse_matrix.h

index 8d2f6e2bee1cb41cbff90aef46d49fbeeb4f68a5..92728a18559c0320cb8e9885e2fdca80349a9005 100755 (executable)
@@ -2514,20 +2514,22 @@ namespace TrilinosWrappers
 #ifdef DEBUG
     if (ierr > 0)
       {
+       std::cout << "------------------------------------------"
+                 << std::endl;
        std::cout << "Got error " << ierr << " in row " << row 
                  << " of proc " << row_map.Comm().MyPID()
-                 << " with columns:" << std::endl;
+                 << " when trying to add the columns:" << std::endl;
        for (int i=0; i<n_columns; ++i)
          std::cout << col_index_ptr[i] << " ";
-       std::cout << endl;
-       std::cout << " Matrix row has indices:" << std::endl;
+       std::cout << std::endl << std::endl;
+       std::cout << "Matrix row has the following indices:" << std::endl;
        int n_indices, *indices;
        trilinos_sparsity_pattern().ExtractMyRowView(row_map.LID(row),
                                                     n_indices,
                                                     indices);
        for (int i=0; i<n_indices; ++i)
          std::cout << indices[i] << " ";
-       std::cout << endl;
+       std::cout << endl << std::endl;
        Assert (ierr <= 0, 
                ExcAccessToNonPresentElement(row, col_index_ptr[0]));
       }

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.