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

Track file not generated on particle restart run #2956

Closed
Edgar-21 opened this issue Apr 12, 2024 · 0 comments · Fixed by #2957
Closed

Track file not generated on particle restart run #2956

Edgar-21 opened this issue Apr 12, 2024 · 0 comments · Fixed by #2957
Labels

Comments

@Edgar-21
Copy link

Bug Description

When restarting openmc from a particle.h5 restart file, with tracks=True, no track file is written.

Steps to Reproduce

The following code will lose some particles, then attempt to restart from a particle.h5 with tracks=True, and only a summary.h5 file will be outputted.

import openmc
model = openmc.examples.pwr_pin_cell()
model.settings.max_tracks = 20

# change the boundary condition of some surfaces to induce lost particles
for surf in model.geometry.get_all_surfaces().values():
    if isinstance(surf, openmc.XPlane):
        surf.boundary_type = 'transmission'

model.run()

# try to restart and write a track
openmc.run(restart_file='particle_1_11.h5', tracks=True)

Environment

I have tried this both on the following conda install of openmc, and on the latest version of the develop-dagmc docker image.
openmc -v

OpenMC version 0.14.0
Git SHA1: e1a8ee7794b441c992426f17fafe216391cbba83
Copyright (c) 2011-2023 MIT, UChicago Argonne LLC, and contributors
MIT/X license at <https://docs.openmc.org/en/latest/license.html>
Build type:            Release
Compiler ID:           GNU 12.3.0
MPI enabled:           yes
Parallel HDF5 enabled: yes
PNG support:           yes
DAGMC support:         yes
libMesh support:       no
MCPL support:          no
NCrystal support:      no
Coverage testing:      no
Profiling flags:       no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant