diff --git a/include/ygm/detail/comm.ipp b/include/ygm/detail/comm.ipp index 30f81723..2f1d3992 100644 --- a/include/ygm/detail/comm.ipp +++ b/include/ygm/detail/comm.ipp @@ -37,7 +37,7 @@ inline comm::comm(int *argc, char ***argv) : pimpl_if(std::make_shared(argc, argv)), m_layout(MPI_COMM_WORLD), m_router(m_layout, config.routing), - m_logger(m_layout.size()) { + m_logger(m_layout.rank()) { // pimpl_if = std::make_shared(argc, argv); comm_setup(MPI_COMM_WORLD); } @@ -51,7 +51,7 @@ inline comm::comm(int *argc, char ***argv) inline comm::comm(MPI_Comm mcomm) : m_layout(mcomm), m_router(m_layout, config.routing), - m_logger(m_layout.size()) { + m_logger(m_layout.rank()) { pimpl_if.reset(); int flag(0); YGM_ASSERT_MPI(MPI_Initialized(&flag));