mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
fixed bug in tally.get_slice() method for mesh filters
This commit is contained in:
parent
4198b6b514
commit
c66cb6ab66
1 changed files with 3 additions and 0 deletions
|
|
@ -2986,6 +2986,9 @@ class Tally(object):
|
|||
elif filter_type == 'distribcell':
|
||||
bin_indices = [0]
|
||||
num_bins = find_filter.num_bins
|
||||
elif filter_type == 'mesh':
|
||||
bin_indices = [0]
|
||||
num_bins = find_filter.mesh.num_mesh_cells
|
||||
else:
|
||||
bin_indices.append(bin_index)
|
||||
num_bins += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue