Commit f5e1cba6 authored by Ramon Nou's avatar Ramon Nou
Browse files

communicator not correct if range is empty

parent e9205b43
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -206,12 +206,14 @@ worker::run() {
                                }
                            }

                            const auto tempworkers = ::make_communicator(
                            auto tempworkers = ::make_communicator(
                                    workers,
                                    workers.group().exclude(
                                            ranks_to_exclude.begin(),
                                            ranks_to_exclude.end()),
                                    0);
                            // The communicator is not correct if ranks are empty
                            if (workers.size()==1) tempworkers = workers;

                            m_ops.emplace(std::make_pair(
                                    make_pair(input_path, output_path),