diff --git a/src/Grid/grid_dist_id_comm.hpp b/src/Grid/grid_dist_id_comm.hpp index a81cbe7c0004f20dccf95dcf9a80f2dcf3b6395d..443111707e83fe4c110ed68d24519398a9a089c7 100644 --- a/src/Grid/grid_dist_id_comm.hpp +++ b/src/Grid/grid_dist_id_comm.hpp @@ -432,9 +432,18 @@ class grid_dist_id_comm { // It is not possible to calculate the total information so we have to receive - v_cl.sendrecvMultipleMessagesNBX(send_prc_queue.size(),&send_size.get(0), + if (send_prc_queue.size() == 0) + { + v_cl.sendrecvMultipleMessagesNBX(send_prc_queue.size(),NULL, + NULL,NULL, + receive_dynamic,this); + } + else + { + v_cl.sendrecvMultipleMessagesNBX(send_prc_queue.size(),&send_size.get(0), &send_prc_queue.get(0),&send_pointer.get(0), receive_dynamic,this); + } } }