Troubleshooting MCNP6: 'Bad Trouble in Subroutine Source' & More

AI Thread Summary
The user is encountering a "bad trouble in subroutine source" error when running MCNP6, indicating a potential issue with the source subroutine despite having included KCODE and KSRC in the code. Additionally, a warning about missing tallies is causing confusion, as the user believes they have correctly implemented them. Suggestions for troubleshooting include checking the installation of MCNP6, as an incomplete installation may lead to such errors. It's also advised to examine the input file for odd character codes or incorrect formatting, which could prevent proper parsing. Addressing these issues may help resolve the errors encountered.
tysonman166
Messages
7
Reaction score
1
TL;DR Summary
Hi! so i kinda stuck when i tried to run my code in MCNP6 because the output keep showing me "bad trouble in subroutine source of mcrun
you need a source subroutine."
While im sure i already put my KCODE and KSRC in my code (on the picture below). Could anyone help me where i should start looking for the mistake? thank you!
Hi! so i kinda stuck when i tried to run my code in MCNP6 because the output keep showing me "bad trouble in subroutine source of mcrun
you need a source subroutine."
While I am sure i already put my KCODE and KSRC in my code (on the picture below). Could anyone help me where i should start looking for the mistake? thank you!
1656338769465.png


And this is kinda small but the output said "warning. there are no tallies in this problem." where it really got me confused since i already put the tally in there? i tried to swap the position with the material card but that leads me to more error (my material can't be read by MCNP). If anyone could help me it could be really great...

Many Thanks!
 
Engineering news on Phys.org
That error message sounds like your installation of MCNP6 is not complete. You might have to reinstall it.
 
This is a deep techy error. If MCNP can't find a card to specify source parameters it calls the user source routine, which by default is a dummy routine that reports an error and quits.

Most probable is something is preventing the correct parsing of the input file. This could be an odd character code in the input file, or wrong number of empty lines that separate sections.
 
Back
Top