Skip to content
Snippets Groups Projects
Commit ed3f2c46 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Print correct number of particles

parent 0d96b833
Branches
Tags
2 merge requests!136Master,!121Gpart mpi io
......@@ -380,6 +380,7 @@ int main(int argc, char *argv[]) {
#if defined(WITH_MPI)
long long N_long[2] = {Ngas, Ngpart};
MPI_Reduce(&N_long, &N_total, 2, MPI_LONG_LONG, MPI_SUM, 0, MPI_COMM_WORLD);
N_total[1] -= N_total[0];
if (myrank == 0)
message("Read %lld gas particles and %lld DM particles from the ICs",
N_total[0], N_total[1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment