Major Bug fix in sync population where number_pop_species initilization failed and lead to not syncing densities
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
\mode<presentation>
|
||||
|
||||
\usepackage[scaled]{uarial}
|
||||
%\usepackage[scaled]{uarial}
|
||||
\usepackage{helvet}
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user