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

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 7K views
tysonman166
Messages
7
Reaction score
1
TL;DR
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!
 
Physics news on Phys.org
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.