Open marinhosg opened 2 weeks ago
Have you tried the multiprocessing package?
See the mp_run_epanet and runepanet functions in https://github.com/USEPA/PPMtools/blob/master/PPMtools.py
I have used multiprocessing package to run simulations in parallel in the past. I have not used the concurrent.futures packages in the past.
Dear colleagues,
I'm having some problems when try I to run my WNTR simulations with parallel processing. In sum, I'm trying to run a Water Net (".inp" EPANET file) and compute some parameters from this simulation, as bridge_density, central_point_dominance, todini_index, etc. However, I need to run this simulations several times, considering n hypothesis, and the total of simulations is around 6,000. So, I knew that using parallel processing would be an alternative to speeding up my simulations and save time. But, when I try to use multiprocessing or concurrent.futures tools, the simulations don't run or take more time than the thread process (normal analysis, one by one). Is that a way to solve this problem? I'll attach an example of what I'm working with. Sometimes, EPANET error 200 appears on screen. Thank you.
Environment