mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Made Python API MultiGroupXS.get_condensed_xs(...) routine permit same number of energy groups
This commit is contained in:
parent
9377823ddc
commit
4451b71f36
1 changed files with 2 additions and 1 deletions
|
|
@ -537,7 +537,8 @@ class MultiGroupXS(object):
|
|||
raise ValueError(msg)
|
||||
|
||||
cv.check_type('coarse_groups', coarse_groups, EnergyGroups)
|
||||
cv.check_less_than('coarse groups', coarse_groups.num_groups, self.num_groups)
|
||||
cv.check_less_than('coarse groups', coarse_groups.num_groups,
|
||||
self.num_groups, equality=True)
|
||||
cv.check_value('upper coarse energy', coarse_groups.group_edges[-1],
|
||||
[self.energy_groups.group_edges[-1]])
|
||||
cv.check_value('lower coarse energy', coarse_groups.group_edges[0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue