-
Notifications
You must be signed in to change notification settings - Fork 15
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
detect SWMM version #18
Comments
This is very important, do you mean from the binary file or the inp file? |
Actually, I thought about detecting the most recent SWMM version installed to set the default path to the SWMM engine. But you're right: this would also be nice if we could estimate the SWMM version from both .inp and .out files. |
todo:
|
The binary file version is shown at the top of the binary file you can use the date of the swmm5.dll or swmm5.exe to determine the engine version but that will not work if you recompile it it is easy to determine inp file versions by changes to the option section, unfortunately no all version have changes to the options section |
Thank you, Robert! |
This is of limited help but i did do a blog about how you can use the options to find different versions of SWMM5. Unfortunately, most consecutive SWMM5 releases have the same options so this only yields three different "option" versions between 2014 and 2018 |
heuristic to detect available SWMM engines (OS specific) added in 0353e72 |
function to determine the SWMM version the .out file was generated with is added in |
@dickinsonre Why the confused smiley? |
I was confused and used the wrong smiley! |
@dickinsonre From your blog post, I derive the following heuristic:
Any idea what could bring us more information? |
There are a few other changes such as changes to the LID section and Weir sections (more data) but those only work if the user uses the new feature. If there is an output OUT file you could get the version number from the header of the binary file. It might be enough just to say that the input file works with the following versions of SWMM5. |
No description provided.
The text was updated successfully, but these errors were encountered: