MNCP5 error: Program Exception - stack overflow

  • Thread starter Thread starter ytaiwo85
  • Start date Start date
  • Tags Tags
    Error Program
AI Thread Summary
The MNCP5 error "Program Exception - stack overflow" may indicate that the program has exceeded data limits, possibly due to unusually large numbers or invalid inputs. Running the program in a debugger can help pinpoint the exact line of failure, aiding in identifying the cause of the error. Users are encouraged to seek advice from a user group familiar with the program for additional insights. It's important to review the data for any anomalies, such as excessively large values or incorrect formatting. Addressing these issues may resolve the stack overflow error.
ytaiwo85
Messages
1
Reaction score
0
TL;DR Summary
what causes this error message forrtl: severe (170): Program Exception - stack overflow on mcnp5 when using new data library endf80 (lib80.x) with geometry that have many latice cell. It work well on simple model and when use with mcnpx.
I can figure it out, what is really wrong because the same geometry work without error with other data library (Fendl, endf70B).
only this new library gives this error message[ forrtl: severe (170): Program Exception - stack overflow]
1614877704892.png
 
Last edited by a moderator:
Engineering news on Phys.org
There's really not enough to go on.

Can you run the program in a debugger? Sometimes program code is compiled and linked to its source code such that a debugger can identify the line of failure and from there you can identify what may have caused it.

I would suggest finding a user group for this program and ask knowledgeable users about your error. It's likely that you have exceeded some limit on the size of your data.

In the meantime, go through your data to see if there are any numbers that are extremely large or much larger than usual. Check to see if there are any invalid numbers like entering 12:34 or 12^34 instead of 12.34.
 
Hello, I'm currently trying to compare theoretical results with an MCNP simulation. I'm using two discrete sets of data, intensity (probability) and linear attenuation coefficient, both functions of energy, to produce an attenuated energy spectrum after x-rays have passed through a thin layer of lead. I've been running through the calculations and I'm getting a higher average attenuated energy (~74 keV) than initial average energy (~33 keV). My guess is I'm doing something wrong somewhere...
Back
Top