Describe the bug
When killing a simulation that is running with do die, it stops as expected, but the experiment continues running for some time before closing. That could be many cycles. That behavior is causing exceptions in the experiment when having reflexes using the simulations and probably also in some aspects.
To Reproduce
Steps to reproduce the behavior:
run this model:
model killsimu
global {
reflex when:cycle=10 {
do die;
}
}
experiment e{
reflex {
write cycle;
}
}
3. see that the cycles are written, until the simulation is killed
4. after this an exception is raised
You can also see that the experiment cycle is way above the number 10
**Expected behavior**
When all simulations are killed, the experiment stops.
Describe the bug When killing a simulation that is running with
do die
, it stops as expected, but the experiment continues running for some time before closing. That could be many cycles. That behavior is causing exceptions in the experiment when having reflexes using the simulations and probably also in some aspects.To Reproduce Steps to reproduce the behavior:
global {
}
experiment e{
}