Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoundsError in ADBM rewiring model when using with nutrient intake model. #70

Closed
evadelmas opened this issue Apr 16, 2019 · 0 comments
Closed
Assignees
Labels

Comments

@evadelmas
Copy link
Collaborator

Seems that there is a problem in the ADBM's get_feeding_links function caused by the biomass object containing actual biomass AND nutrients concentration.

Expected behavior

  • rewiring following extinction events

Actual behavior

  • ERROR: BoundsError: attempt to access 4-element Array{Float64,1} at index [Base.LogicalIndex(Bool[false, true, false, false, false, false])] [...] at src/rewiring/ADBM.jl:94

Steps to reproduce

A = [0 1 1 0 ; 0 0 0 1 ; 0 0 0 1 ; 0 0 0 0]
p = model_parameters(A, Z = 10.0, rewire_method = :ADBM, Hmethod = :ratio, Nmethod = :biomass, h = 2.0, productivity = :nutrients)
biomass = [0.2, 0.0, 0.4, 0.7]
s = simulate(p, biomass) 
@evadelmas evadelmas added the bug label Apr 16, 2019
@evadelmas evadelmas self-assigned this Apr 16, 2019
@evadelmas evadelmas mentioned this issue Jul 5, 2019
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant