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.
For some reason,
goss
usesode.full_states
rather thanode.states
to generate code. Sinceode.full_states
andode.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 thestate_symbols
andstate_values
uses thefull_states
in order to make things a bit more consistent.