Skip to content

Commit

Permalink
Remove rounding for dispersers from cell
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Oct 24, 2024
1 parent 4347097 commit c970574
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pops/host_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ class HostPool : public HostPoolInterface<RasterIndex>
}
}
else {
dispersers_from_cell = std::lround(lambda * infected_at(row, col));
dispersers_from_cell =
static_cast<int>(std::floor(lambda * infected_at(row, col)));
}
return dispersers_from_cell;
}
Expand Down

0 comments on commit c970574

Please sign in to comment.