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

"A particle is lost" recursive loop #180

Open
spasmann opened this issue Apr 2, 2024 · 0 comments
Open

"A particle is lost" recursive loop #180

spasmann opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working as intended

Comments

@spasmann
Copy link
Collaborator

spasmann commented Apr 2, 2024

Running the 2D C5G7, I've run into a "Particle is lost" bug using both Monte Carlo and iQMC. A particle being lost could be due to an error in the input deck created by the user. So I'm not as concerned that a particle was lost, but that the "Particle is Lost" statement repeats infinitely. Shouldn't it print the error, kill the particle, and move on?

When get_particle_cell() fails to find a cell_ID we set:

  • P["alive"]=False,
  • return a cell_ID = -1,
  • and expect the while True loop in get_particle_material() to break?

However, it gets stuck in this recursive loop where it repeats the "Particle is Lost" statement, until the output file exceeds my disk quote and the run fails.

Sample of output:

A particle is lost at ( 16.612528973121755 -3.824586145564854 10000000000.0 )
A particle is lost at ( 16.612528973121755 -3.824586145564854 10000000000.0 )
A particle is lost at ( 16.612528973121755 -3.824586145564854 10000000000.0 )
A particle is lost at ( 16.612528973121755 -3.824586145564854 10000000000.0 )
@spasmann spasmann added the bug Something isn't working as intended label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

1 participant