heal-research / SimSharp

Sim# is a .NET port of SimPy, process-based discrete event simulation framework
MIT License
126 stars 30 forks source link

Fix empty fuel pump bug in GasStationRefueling sample #44

Closed sean-reed closed 1 year ago

sean-reed commented 2 years ago

Adds check for empty fuel pump before attempting to draw fuel in GasStationRefueling sample, preventing an invalid get request for 0 fuel. Note: this bug only materialises when attributes are changed from current values such that an empty fuel pump occurs during simulation.