asselapathirana / epanettools

EPANET calling API for python.
Other
16 stars 13 forks source link

Kernel Crash on ENinitQ(0) #39

Open mxfeinberg opened 4 years ago

mxfeinberg commented 4 years ago

Hello @asselapathirana, great work with this wrapper! I've been running some water quality analyses and just recently I tried to save a report directly from a run. Looking through the documentation, I saw that I can do the following to save a hydraulic analysis.

es.ENsaveH();
/* Define contents of the report */
es.ENresetreport()
es.ENsetreport("FILE myfile.rpt")
es.ENsetreport("NODES ALL")
es.ENsetreport("PRESSURE PRECISION 1")
es.ENsetreport("PRESSURE ABOVE 20")
/* Write the report to file */
es.ENreport()

However, with the quality analysis I noticed that it was somewhat different.

EninitQ() takes in either 0 if nothing is to be saved to a file or 1 if data is supposed to be saved to a file, but whenever I run es.ENinitQ(1), my kernel crashes from what I assume to be a segfault.

Have you experienced this issue before? Should I do something differently to produce a water quality report?

Please let me know if I need to provide any other information.

xavicall00 commented 2 years ago

Have you been able to run a step by step simulation? When I try to use ENopenQ() i get the message: Water hydraulic analysis not initialized.