Skip to content
Snippets Groups Projects
Verified Commit ebf10570 authored by raphael.bach's avatar raphael.bach
Browse files

Fix inverted if branches in `fmpi_domain.c`

parent 54619dc3
Branches
No related tags found
No related merge requests found
...@@ -136,10 +136,10 @@ static struct fmpi_data fmpi_halo_1d( ...@@ -136,10 +136,10 @@ static struct fmpi_data fmpi_halo_1d(
memcpy(((char *)halo.raw + type_size), data.raw, (data.size + type_size)); memcpy(((char *)halo.raw + type_size), data.raw, (data.size + type_size));
// Right boundary // Right boundary
} else if(rank == (size_t)(ctx->mpi->size - 1)) { } else if(rank == (size_t)(ctx->mpi->size - 1)) {
memcpy(halo.raw, ((const char *)(data.raw) - type_size), size); memcpy(halo.raw, ((const char *)(data.raw) - type_size), (data.size + type_size));
// Middle // Middle
} else { } else {
memcpy(halo.raw, ((const char *)(data.raw) - type_size), (data.size + type_size)); memcpy(halo.raw, ((const char *)(data.raw) - type_size), size);
} }
return halo; return halo;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment