Dear S.A. Mohseni, You need to look carefully at the documentation for the specific SparseMatrix class. Its unclear to me whether LA::MPI::SparseMatrix represents a TrilinosWrappers::SparseMatrix <https://www.dealii.org/developer/doxygen/deal.II/classTrilinosWrappers_1_1SparseMatrix.html#a333dd1daec6398914395eeec7b83c520> or a PetscWrappers::SparseMatrix <https://www.dealii.org/developer/doxygen/deal.II/classPETScWrappers_1_1MatrixBase.html#aeba561ab61b88e8e539811c7d027d666>, but in either case it looks as if they both have print functions with the same signature:
<SomeMatrix>::print(std::ostream &out, const bool <something_else>) const So the << operator isn't overloaded for these matrix types and you'd need to provide an ostream from the pcout object in a manner that I mentioned in a previous post. Regards, Jean-Paul On Wednesday, December 14, 2016 at 4:29:27 PM UTC+1, mohsengineer...@gmail.com wrote: > > Hi again, > > It's not quite clear to me yet. Is it possible to pcout a MPI SparseMatrix > or Vector? If I do e.g. > > pcout << system_matrix << std::endl; > > Then I receive the address as output since the system matrix is > initialized like this: > > LA::MPI::SparseMatrix system_matrix; > > How is it possible to output a parallel matrix then? > > Kind regards, > S. A. Mohseni > -- 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. For more options, visit https://groups.google.com/d/optout.