I am currently carrying out an analysis that involves many thousand Epanet simulations for the same system. The first several thousand work fine, but after a certain number (always the same number), ENinitH(1) starts to return error code 305. If I change the code to use ENinitH(0) I have no such problem. Is anyone able to suggest what could be causing this? I need to use ENinitH(1) as I want to follow the hydraulic simulation with a quality one.
I do use ENopen and ENopenH at the start of every simulation and ENcloseH and ENclose at the end of each.
Thanks in advance for any suggestions.