From 7600149bc511bb72e5b60a1df168d6d1847d66f0 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Tue, 20 Aug 2019 17:54:41 +0200 Subject: [PATCH] Incorrect row was being sent, fixes #1 --- src/comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm.c b/src/comm.c index 226a76c..df43886 100644 --- a/src/comm.c +++ b/src/comm.c @@ -1287,7 +1287,7 @@ comm_send_ghost_rho(sim_t *sim) /* We already have the ghost row of the lower part in contiguous memory * */ - ptr = &MAT_XY(rho, 0, sim->blocksize[Y] - sim->ghostpoints); + ptr = &MAT_XY(rho, 0, sim->blocksize[Y]); /* We only send 1 row of ghost elements, so we truncate rho to avoid * sending the VARIABLE padding added by the FFTW */