Zenmo / zero_engine

This repository contains the 'engine' part of the Zenmo Zero models; the calculation model of the energy system simulation
GNU General Public License v3.0
0 stars 0 forks source link

pause function does not work correctly for connections that contain vehicles #63

Closed AteZenmo closed 2 months ago

AteZenmo commented 2 months ago

When unpausing when vehicle (at least for EV, maybe other types aswell) is away, it goes wrong.

AteZenmo commented 2 months ago

Caused by possiblity to set active (or non active) multiple times. --> would result in duplicated GC in the c_GridConnection collection. Check has been created in the f_setActive function in the GC to prevent this. See pull request.