#include "mpi.h"
+#include <assert.h>
#include <stdio.h>
#include <string.h>
static void setup_recvbuf(int nprocs, int** recvbuf, int** displs, int** counts, int** rcounts)
{
*recvbuf = malloc(BUFSIZE * nprocs * sizeof(int));
+ assert(*recvbuf != NULL);
for (int i = 0; i < BUFSIZE * nprocs; i++)
(*recvbuf)[i] = i;