Is it possible to output a MPI vector with pcout for different ranks/cores?

Within the constructor I define the following:

pcout(std::cout, (Utilities::MPI::this_mpi_process(mpi_com) == 0)),

Hence, when I replace 0 with 1 or 2 it should output for the second or 
third core, but it doesnt work and I receive a PETSc error.

Am I not able to output for a different core than the first one? 

Best 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.

Reply via email to