Skip to content

Commit

Permalink
Incorrect row was being sent, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rodarima committed Jul 8, 2019
1 parent edfe6ac commit 8eb8091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8eb8091

Please sign in to comment.