gama-platform / gama

Main repository for developing the 2024+ versions of GAMA
https://gama-platform.org
GNU General Public License v3.0
11 stars 4 forks source link

Experiment doesn't stop immediately after the simulation is killed #208

Open lesquoyb opened 4 weeks ago

lesquoyb commented 4 weeks ago

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:

  1. 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.