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

Error when increasing $MXSTACK in array_sizes.h file in egs_chamber #1192

Open
rtownson opened this issue Sep 27, 2024 Discussed in #1190 · 0 comments
Open

Error when increasing $MXSTACK in array_sizes.h file in egs_chamber #1192

rtownson opened this issue Sep 27, 2024 Discussed in #1190 · 0 comments
Assignees

Comments

@rtownson
Copy link
Collaborator

The following discussion revealed a simple compiler error that occurred when MXSTACK was increased. It was due to the line length flowing over 80 characters when the value of MXSTACK was substituted.

Discussed in #1190

Originally posted by Fisicomelo September 25, 2024
Hello guys,

I am trying to run egs_chamber with a BEAM accel as shared library, and I am constantly getting this error:
Stack overflow in BREMS! np = ****** Increase $MXSTACK and try again
However, if I try to increase $MXSTACK from 9e6 to 1e7 in the array_sizes.h file in egs_chamber and try to recompile I get another error (please, see image) that does not allow me to compile it:
compiling_error

I have tried to increase $MXSTACK in /home/omega/EGSnrc/HEN_HOUSE/src/egsnrc.macros as well but I still have the same (first) error.

Does anyone have any suggestion?

DBS settings:
Splitting field radius: 10
SSD: 100
Beam splitting number: 800

@rtownson rtownson self-assigned this Sep 27, 2024
rtownson added a commit that referenced this issue Sep 27, 2024
Fix a compiler error that occurred when MXSTACK was increased to 1e7 or
higher. This was due to the line length of an output statement flowing
over 80 characters. The fix was just to split the line, so that more
characters are available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant