ComputationalPhysiology / gotran

Library for declaring and translating ODEs
http://computationalphysiology.github.io/gotran/
GNU Lesser General Public License v3.0
2 stars 1 forks source link

State symbols #43

Closed finsberg closed 1 year ago

finsberg commented 1 year ago

For some reason, goss uses ode.full_states rather than ode.states to generate code. Since ode.full_states and ode.states may be identical but in different order, this might result in a wrong index being used if you rely on the order to be the same. Here we just simple make sure that the state_symbols and state_values uses the full_states in order to make things a bit more consistent.