From c66cb6ab66633b05712cc48b8b43d0cc841ace2c Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Tue, 5 Jul 2016 08:45:19 -0400 Subject: [PATCH] fixed bug in tally.get_slice() method for mesh filters --- openmc/tallies.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openmc/tallies.py b/openmc/tallies.py index af19549a7c..9ef5148966 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -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