LLNL / ygm

Other
31 stars 22 forks source link

ygm::comm.cout() style printing has formatting issues with many message components #106

Closed bwpriest closed 2 years ago

bwpriest commented 2 years ago

Printing with ygm::comm::cout(Args &&...args) and ygm::comm::cerr(Args &&...args) gets garbled when passing many message components to many ranks. I believe that we can ameliorate this by internally compiling the args to a std::stringstream and then send a single string per rank to the relevant std::ostream.