How to deal with MCNP stack overflow

  • Thread starter Thread starter scu-mxy
  • Start date Start date
  • Tags Tags
    Mcnp
AI Thread Summary
The discussion centers on the use of ASCII versus binary versions of a specific library, highlighting potential compatibility issues with older code versions. New features in libraries, such as tables, can cause unexpected negative indices in cross-section data, leading to memory access violations. Users have experienced crashes when using newer libraries with older code, particularly noted with version 4. There is a cautionary note regarding the stability of version 5, although no explicit issues have been reported yet. Compatibility and memory management are critical considerations when updating libraries.
scu-mxy
Messages
1
Reaction score
0
TL;DR Summary
Before I change the neutron cross section library, the program can run normally. So I believe My input file is fine. I have used MPICH to speed up the calculation. My computer has 16G RAM, how can I solve this problem
mistake.png
 
Engineering news on Phys.org
Are you using the ASCII version of the library or the binary version? What library?

If your library is too new, it can crash older versions of the code. New features (tables) in the libraries can lead to weird even negative indices into the cross section data. Memory access is then attempted outside the program space. I've not seen this explicitly with 5. I learned my lesson with 4.
 
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...

Similar threads

Replies
4
Views
1K
Replies
4
Views
2K
Replies
4
Views
3K
Replies
3
Views
181
Replies
0
Views
1K
Replies
1
Views
1K
Replies
1
Views
2K
Replies
7
Views
1K
Replies
6
Views
3K
Back
Top