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

SWMM simulations don't work when running as x64 #231

Open
3 tasks
jamaa opened this issue Jan 14, 2023 · 1 comment
Open
3 tasks

SWMM simulations don't work when running as x64 #231

jamaa opened this issue Jan 14, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed SWMM

Comments

@jamaa
Copy link
Member

jamaa commented Jan 14, 2023

Since v1.9.2, BlueM.Opt is only released as a x64 version. When running as x64, SWMM simulations fail with the message

There was an error during dll loading : [...]\SWMM\temp\SWMM501.dll, error - 193

This is most likely due to the fact that the native SWMM5.dll currently included in BlueM.Opt was compiled for x86.

To fix:

  • Replace SWMM5.dll with a x64 version, probably from here: https://www.epa.gov/water-research/storm-water-management-model-swmm
  • Check whether updating SWMM from v5.0.018 (the currently included version) to a newer version (latest available version is currently v5.2.2) also requires modifications to SWMM.DLLAdapter
  • Replace IHWB.SWMM.DllAdapter.dll with a newly compiled x64 version of SWMM.DLLAdapter (note the filename and namespace changes, which will also require some changes to BlueM.Opt code)
@jamaa jamaa added the bug Something isn't working label Jan 14, 2023
@jamaa
Copy link
Member Author

jamaa commented Jan 14, 2023

Actually, SWMM.DLLAdapter already seems incompatible with SWMM v5.1.0.15 (see #1), so there will definitely be work involved to update to v5.2.

Unless someone steps in to work on this, I guess we will just have to remove SWMM from BlueM.Opt.

@jamaa jamaa added the help wanted Extra attention is needed label Jan 14, 2023
@jamaa jamaa added the SWMM label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed SWMM
Projects
None yet
Development

No branches or pull requests

1 participant