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 480a874 commit 547d677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transitions/BiodiversityRun.jl
Expand Up @@ -27,7 +27,7 @@ function _run_rule!(eco::Ecosystem, rule::GenerateSeed, timestep::Unitful.Time)
spp = getspecies(rule)
dest = getdestination(rule)
loc = getlocation(rule)
if (eco.abenv.active[loc]) & (eco.cache.totalE[loc, 1] > 0)
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
Expand Down

0 comments on commit 547d677

Please sign in to comment.