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.