OpenWaterAnalytics / EPANET

The Water Distribution System Hydraulic and Water Quality Analysis Toolkit
MIT License
272 stars 201 forks source link

Fix Issue #789 - free network Adjlist #791

Closed zannads closed 1 month ago

zannads commented 1 month ago

This is the proposed fix for Issue #789.

It is the fastest and most straightforward solution I could think of. The only drawback is the freeing of Adjlist between hydraulics and quality simulations.

Alternatively, one could think of invalidating and freeing it whenever an element (node or a link) is added to the network.