Ticket #810 (closed assessed: fixed)
Ecosim throws an error on invalid pred/prey assignments
Reported by: | joeb | Owned by: | joeb |
---|---|---|---|
Priority: | normal | Milestone: | Ecopath 6: release 6.1.1 |
Component: | Ecosim | Version: | |
Severity: | minor | Keywords: | |
Cc: |
Description
Invalid pred/prey forcing function assignments cause Ecosim to pitch an exception. Data should not be in this state, but it does not hurt to make Ecosim more robust.
Change History
Note: See
TracTickets for help on using
tickets.
Partial fix of bug 810 ApplyAVmodifiers() m_Data.FunctionNumber(iprey,jpred,ishape) can contain shape indexes <0 (-1) if there is a problem with the database.
Changed
If m_Data.FunctionNumber(i, j, K) = 0 Then Exit Sub
To
If m_Data.FunctionNumber(i, j, K) <= 0 Then Exit Sub
incase database loaded an invalid shape index into FunctionNumber(...)