Skip to content

Commit 295a54d

Browse files
committed
node: add debug for read
1 parent b05524e commit 295a54d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/network/node.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ void node_cycle(struct node *n) {
7777
debug("Read OP", n->id);
7878
char *data = malloc(m->size * sizeof(char));
7979
read_on_node(n, m->address, data, m->size);
80-
MPI_Send(data, m->size * sizeof(char), MPI_BYTE, m->id_s, 4, MPI_COMM_WORLD);
80+
debug("Send Read: Data", n->id);
81+
MPI_Send(data, m->size, MPI_BYTE, m->id_s, 4, MPI_COMM_WORLD);
8182
free(data);
8283
break;
8384
default:

0 commit comments

Comments
 (0)