Major Bug fix in sync population where number_pop_species initilization failed and lead to not syncing densities

This commit is contained in:
Christian
2019-11-05 23:37:11 +01:00
parent fb20c896eb
commit b7a195e93d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ Simulation::Simulation() {
void Simulation::init_pop_arrays() { // Init C-arrays used for MPI-Allgather commands depending on Populations sizes
Population_Manager *populations = looper.get_populations();
int number_pop_species = 0;
number_pop_species = 0;
vector<species> all_species = get_all_species_vector();
for (vector<species>::iterator itr = all_species.begin(); itr!= all_species.end(); itr++) {
if (populations->find(*itr)->access_container() != nullptr) {