borismarin / som-codegen

dLEMS - a distilled version of the Low Entropy Model Specification language used to generate code for numerical integrators.
1 stars 0 forks source link

The SOM data structure - event handling #2

Open borismarin opened 11 years ago

borismarin commented 11 years ago

Should the event descriptor be changed? I am not sure that its present form is the most convenient for template based codegen. Currently, a poor-man's event handler has been implemented in the test template matlab_euler. But it has some serious limitations: 1) not handling changes in dynamics 2) not handling multiple events (mostly due to difficulties in velocity (maybe only in airspeed) when handling nested sequences in #foreach loops. What would be the best way of describing multiple events? an array of "event" objects?

borismarin commented 11 years ago

A better way of describing events is under experimentation in the eco-som branch