Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel Crash on ENinitQ(0) #39

Open
mxfeinberg opened this issue May 14, 2020 · 1 comment
Open

Kernel Crash on ENinitQ(0) #39

mxfeinberg opened this issue May 14, 2020 · 1 comment

Comments

@mxfeinberg
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants