diff --git a/src/core/ghosts.cpp b/src/core/ghosts.cpp index e300b9525ee..641660094dd 100644 --- a/src/core/ghosts.cpp +++ b/src/core/ghosts.cpp @@ -365,21 +365,6 @@ void cell_cell_transfer(GhostCommunication *gc, int data_parts) { } } -void reduce_forces_sum(void *add, void *to, int const *const len, - MPI_Datatype *type) { - auto *cadd = static_cast(add), - *cto = static_cast(to); - int const clen = *len / sizeof(ParticleForce); - - if (*type != MPI_BYTE || (*len % sizeof(ParticleForce)) != 0) { - fprintf(stderr, "%d: transfer data type wrong\n", this_node); - errexit(); - } - - for (int i = 0; i < clen; i++) - cto[i] += cadd[i]; -} - static int is_send_op(int comm_type, int node) { return ((comm_type == GHOST_SEND) || (comm_type == GHOST_RDCE) || (comm_type == GHOST_BCST && node == this_node));