Ticket #810 (closed assessed: fixed)

Opened 13 years ago

Last modified 13 years ago

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

comment:1 Changed 13 years ago by joeb

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(...)

comment:2 Changed 13 years ago by jeroens

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.