Skip to content

Commit

Permalink
Remove unused force reduction function
Browse files Browse the repository at this point in the history
Made obsolete by a538ebb
  • Loading branch information
hirschsn committed Sep 26, 2019
1 parent 295c398 commit 5b5cb37
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/core/ghosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ParticleForce *>(add),
*cto = static_cast<ParticleForce *>(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));
Expand Down

0 comments on commit 5b5cb37

Please sign in to comment.