Skip to content

Commit

Permalink
Update src/Transitions/BiodiversityRun.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Reeve <git@richardreeve.net>
  • Loading branch information
claireh93 and richardreeve committed Jul 23, 2021
1 parent 4516537 commit 480a874
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Transitions/BiodiversityRun.jl
Expand Up @@ -11,8 +11,7 @@ function _run_rule!(eco::Ecosystem, rule::BirthProcess, timestep::Unitful.Time)
loc = getlocation(rule)
if (eco.abenv.active[loc]) & (eco.cache.totalE[loc, 1] > 0)
adjusted_birth, adjusted_death = energy_adjustment(eco, eco.abenv.budget, loc, spp)
birthrate = getprob(rule) * timestep * adjusted_birth
birthrate += 0.0
birthrate = getprob(rule) * timestep * adjusted_birth |> NoUnits
births = rand(rng, Poisson(eco.abundances.matrix[spp, loc] * birthrate))
eco.abundances.matrix[dest, loc] += births
end
Expand Down

0 comments on commit 480a874

Please sign in to comment.