Hi!
I am very new to EGS and need help:
I have troubles using track scoring in egs_chamber on Windows 7 (64). If I try to run the program the egs_chamber crushes. The example tracks1 crashes as well if I use photons. Is that a common issue? The same code works perfectly fine on Linux. Thank you!
I don’t have Windows 7, but tracks work on Windows 10 with mingw5.3.0. It might be a good idea to try a different version of mingw.
There are some issues on Windows with tracks in vacuum but that is unrelated if the tracks1 example crashes.
LikeLike
Thank you
LikeLike
If that doesn’t work, here’s what fixed particle tracks crashing in Windows for me:
When I first ran simulations at home, any simulation that involved particle tracks would crash even if I knew for a fact that those inputs ran just fine at work. After posting on the Google Plus EGSnrc group, Dr. Tessier provided the following solution:
Basically, egs++ needs to be recompiled WITHOUT optimization because the particle track code is not safe against the newer versions of the GNU g++ compiler. To do so, cd over to the egs++ directory. In my case this is D:\egsnrc\HEN_HOUSE\egs++ and then type “make clean” followed by “make opt= “. The space is intentional to indicate that NO optimization should be used. This appeared to solve that issue
LikeLike
A bug with particle tracks that showed on up windows was recently fixed in the master branch. Consider updating to EGSnrc 2018. For your reference, here is the fix:
github.com – Merge branch develop to fix particle tracks bug · nrc-cnrc/EGSnrc@1aba1b2
LikeLike