Hi all,
I need to manually create a trilinos sparse matrix (which a rectangular matrix here) and setup the entries of this matrix. When I do this with the following codes on one MPI rank: TrilinosWrappers::SparseMatrix T_mat( locally_owned_dofs_DG, locally_owned_dofs_NdRho, MPI_COMM_WORLD, 8); TrilinosScalar val = 2.; T_mat.add(0, 0, val); *I got the follow error:* An error occurred in line <1824> of file </home/pai/deal.ii-candi/tmp/unpack/deal.II-v9.1.1/source/lac/trilinos_sparse_matrix.cc> in function void dealii::TrilinosWrappers::SparseMatrix::add(dealii::TrilinosWrappers::SparseMatrix::size_type, dealii::TrilinosWrappers::SparseMatrix::size_type, const size_type*, const TrilinosScalar*, bool, bool) The violated condition was: ierr == 0 Additional information: An error with error number 2 occurred while calling a Trilinos function As on one MPI rank, this matrix should have all the entries stroed. I dont understand this error, and any help will be appreciated. Thank you. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/ddbc94dc-b331-4ee8-b457-94542bc82c96%40googlegroups.com.