Skip to content

Commit

Permalink
Fix bug in spatial mutation operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Sep 13, 2024
1 parent 39765f3 commit 562bbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/ecolab_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ void SpatialModel::mutate()
for (size_t j=0; j<num_new_sp[offi]; ++j)
{
density[j+offset]=1;
offset+=num_new_sp[offi++];
}
offset+=num_new_sp[offi++];
}
ModelData::mutate(new_sp);
}
Expand Down

0 comments on commit 562bbd1

Please sign in to comment.