From 5799d9f2472b29ca5aa6929523b47ca2de177bb3 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Fri, 7 Feb 2025 08:20:21 +0100
Subject: [PATCH] Print more debug info [ci-skip]

---
 src/mesh/ConnectivityDispatcher.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/mesh/ConnectivityDispatcher.cpp b/src/mesh/ConnectivityDispatcher.cpp
index 1ce0c9154..4c3d012a5 100644
--- a/src/mesh/ConnectivityDispatcher.cpp
+++ b/src/mesh/ConnectivityDispatcher.cpp
@@ -330,6 +330,13 @@ ConnectivityDispatcher<Dimension>::_buildNumberOfSubItemPerItemToRecvByProc()
 
   this->_dispatchedInfo<SubItemOfItemT>().m_number_of_sub_item_per_item_to_recv_by_proc =
     this->exchange(number_of_sub_item_per_item);
+
+  for (size_t i_rank = 0; i_rank < parallel::size(); ++i_rank) {
+    std::cout << "rcv from " << i_rank << ": " << rang::fgB::red << itemName(SubItemOfItemT::item_type) << "->"
+              << itemName(SubItemOfItemT::sub_item_type) << ": "
+              << this->_dispatchedInfo<SubItemOfItemT>().m_number_of_sub_item_per_item_to_recv_by_proc[i_rank]
+              << rang::fg::reset << '\n';
+  }
 }
 
 template <size_t Dimension>
@@ -364,6 +371,12 @@ ConnectivityDispatcher<Dimension>::_buildSubItemNumbersToRecvByProc()
     return mutable_sub_item_numbers_to_send_by_proc;
   }();
 
+  for (size_t i_rank = 0; i_rank < parallel::size(); ++i_rank) {
+    std::cout << "sub_ttem_nb " << i_rank << ": " << rang::fgB::magenta << itemName(SubItemOfItemT::item_type) << "->"
+              << itemName(SubItemOfItemT::sub_item_type) << ": " << sub_item_numbers_to_send_by_proc[i_rank]
+              << rang::fg::reset << '\n';
+  }
+
   const auto& number_of_sub_item_per_item_to_recv_by_proc =
     this->_dispatchedInfo<SubItemOfItemT>().m_number_of_sub_item_per_item_to_recv_by_proc;
 
-- 
GitLab