This commit is contained in:
Christian
2019-07-19 15:19:33 +02:00
parent 349182a32c
commit 3da3a023b4
+1 -1
View File
@@ -136,10 +136,10 @@ void Simulation::do_decays(int number_decays) {
}
void Simulation::sync_cpus() {
std::cout<<mpi_rank<<"\n";
MPI_Allreduce(&number_local_decays, &number_global_decays, 1, MPI_INT, MPI_SUM, MPI_COMM_WORLD);
looper.set_global_decays(number_global_decays - number_local_decays);
sync_populations();
std::cout<<mpi_rank<<"\n";
}
void Simulation::sync_populations() {