mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Fix bug when resetting energy_filters from statepoint
This commit is contained in:
parent
6b8ad7e317
commit
5cd7db42fa
1 changed files with 1 additions and 1 deletions
|
|
@ -1045,7 +1045,7 @@ class CMFDRun(object):
|
|||
|
||||
# Set CMFD variables not in statepoint file
|
||||
default_egrid = np.array([_ENERGY_MIN_NEUTRON, _ENERGY_MAX_NEUTRON])
|
||||
self._energy_filters = np.array_equal(self._egrid, default_egrid)
|
||||
self._energy_filters = not np.array_equal(self._egrid, default_egrid)
|
||||
self._n_resets = len(self._reset)
|
||||
openmc.capi.settings.run_CE = True
|
||||
self._mat_dim = np.max(self._coremap) + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue