You need this https://dealii.org/current/doxygen/deal.II/classConditionalOStream.html
> On 21-Apr-2022, at 1:30 PM, hkch...@gmail.com <hkchm1...@gmail.com> wrote: > > Hi, everyone. > > I have installed the deal.ii version 8.2.1 to use SparseDirectMUMPS replace > SparseDirectUMFPACK. It seems that I can run it in parallel like mpirun -np 2 > ./MyProgram, but standard IO std::cout is used in my code, what should I do > to print log in terminal only once? > > Best, > Chen -- 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/A31F6FC8-22E6-441F-9386-BBD76519B7D5%40gmx.net.