mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
correcting indentation. requiring max_lower_bound_ratio to be > 1. updating test.
This commit is contained in:
parent
1e8ede8fef
commit
5d5774b5bf
4 changed files with 8 additions and 8 deletions
|
|
@ -50,8 +50,8 @@ class WeightWindows(IDManagerMixin):
|
|||
rouletting
|
||||
max_lower_bound_ratio : float
|
||||
Maximum allowed ratio of a particle's weight to the weight window's
|
||||
lower bound. A factor will be applied to raise the weight window to
|
||||
be lower than the particle's weight by a factor of max_lower_bound_ratio
|
||||
lower bound. A factor will be applied to raise the weight window to be lower
|
||||
than the particle's weight by a factor of max_lower_bound_ratio
|
||||
during transport if exceeded.
|
||||
max_split : int
|
||||
Maximum allowable number of particles when splitting
|
||||
|
|
@ -213,7 +213,7 @@ class WeightWindows(IDManagerMixin):
|
|||
@max_lower_bound_ratio.setter
|
||||
def max_lower_bound_ratio(self, val):
|
||||
cv.check_type('Maximum lower bound ratio', val, Real)
|
||||
cv.check_greater_than('Maximum lower bound ratio', val, 1.0, True)
|
||||
cv.check_greater_than('Maximum lower bound ratio', val, 1.0)
|
||||
self._max_lower_bound_ratio = val
|
||||
|
||||
@property
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
c77af605fb23bc3f03bb304b82cc2d0d9efe7826167f43202fa0ecba17e6a77fc1a91bf9f4b23f175ae98c04c69067bffb96d7d68e30a126f5fa7c0080ea8367
|
||||
f10c722e27d1f0a69f700bc72c4b7751f375dc0a74e049c9abb4b261d2265155c0e516e7e38f9751b83a24eac07e944e51740d398b720524cf8cd6bf0b8c51fc
|
||||
|
|
@ -93,14 +93,14 @@ def model():
|
|||
None,
|
||||
10.0,
|
||||
e_bnds,
|
||||
max_lower_bound_ratio=1.0)
|
||||
max_lower_bound_ratio=1.5)
|
||||
|
||||
ww_p = openmc.WeightWindows(ww_mesh,
|
||||
ww_p_lower_bnds,
|
||||
None,
|
||||
10.0,
|
||||
e_bnds,
|
||||
max_lower_bound_ratio=1.0)
|
||||
max_lower_bound_ratio=1.5)
|
||||
|
||||
model.settings.weight_windows = [ww_n, ww_p]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue