Skip to content

Commit

Permalink
fix missing memory cleanup for MPI tasks other than 1 (#1005)
Browse files Browse the repository at this point in the history
This fixes #739
  • Loading branch information
rieder committed Nov 20, 2023
1 parent 530e7f4 commit 72c4a3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amuse/community/gadget2/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,7 @@ int check_counts_and_free(int *count, int length){
#ifndef NOMPI
MPI_Reduce(count, NULL, length, MPI_INT, MPI_SUM, 0, GADGET_WORLD);
#endif
delete[] count;
return 0;
} else {
#ifndef NOMPI
Expand Down

0 comments on commit 72c4a3c

Please sign in to comment.