29inline void init_mpi(
const std::string& log_file =
"") {
31 MPI_Comm_rank(MPI_COMM_WORLD, &rank_index);
34 std::string effective_log_file = log_file;
35 if (!log_file.empty() && rank_index != 0) {
36 effective_log_file = log_file +
"." + std::to_string(rank_index);
39 init(effective_log_file);
45 if (rank_index != 0) {