mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Fixed bug in EnergyGroups.get_group(...)
This commit is contained in:
parent
23e26ea4e9
commit
0b9976d721
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class EnergyGroups(object):
|
|||
raise ValueError(msg)
|
||||
|
||||
index = np.where(self.group_edges > energy)[0][0]
|
||||
group = self.num_groups - index
|
||||
group = self.num_groups - index + 1
|
||||
return group
|
||||
|
||||
def get_group_bounds(self, group):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue