mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
corrected rel_max_lost_particles type
This commit is contained in:
parent
8bf727022f
commit
035b0df3d8
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ class Settings:
|
|||
Maximum number of lost particles
|
||||
|
||||
.. versionadded:: 0.12
|
||||
rel_max_lost_particles : int
|
||||
rel_max_lost_particles : float
|
||||
Maximum number of lost particles, relative to the total number of particles
|
||||
|
||||
.. versionadded:: 0.12
|
||||
|
|
@ -517,7 +517,7 @@ class Settings:
|
|||
self._max_lost_particles = max_lost_particles
|
||||
|
||||
@rel_max_lost_particles.setter
|
||||
def rel_max_lost_particles(self, rel_max_lost_particles: int):
|
||||
def rel_max_lost_particles(self, rel_max_lost_particles: float):
|
||||
cv.check_type('rel_max_lost_particles', rel_max_lost_particles, Real)
|
||||
cv.check_greater_than('rel_max_lost_particles', rel_max_lost_particles, 0)
|
||||
cv.check_less_than('rel_max_lost_particles', rel_max_lost_particles, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue