Skip to content

Commit a374ca5

Browse files
authored
Fixes rank in output of stdout and stderr loggers (#391)
1 parent 8f50ee9 commit a374ca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ygm/detail/comm.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ inline comm::comm(int *argc, char ***argv)
3737
: pimpl_if(std::make_shared<detail::mpi_init_finalize>(argc, argv)),
3838
m_layout(MPI_COMM_WORLD),
3939
m_router(m_layout, config.routing),
40-
m_logger(m_layout.size()) {
40+
m_logger(m_layout.rank()) {
4141
// pimpl_if = std::make_shared<detail::mpi_init_finalize>(argc, argv);
4242
comm_setup(MPI_COMM_WORLD);
4343
}
@@ -51,7 +51,7 @@ inline comm::comm(int *argc, char ***argv)
5151
inline comm::comm(MPI_Comm mcomm)
5252
: m_layout(mcomm),
5353
m_router(m_layout, config.routing),
54-
m_logger(m_layout.size()) {
54+
m_logger(m_layout.rank()) {
5555
pimpl_if.reset();
5656
int flag(0);
5757
YGM_ASSERT_MPI(MPI_Initialized(&flag));

0 commit comments

Comments
 (0)