mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Ensure timesteps are positive
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
This commit is contained in:
parent
3682f7adcb
commit
4966ff7c5d
1 changed files with 1 additions and 1 deletions
|
|
@ -680,7 +680,7 @@ class Integrator(ABC):
|
|||
for time, unit, watts in zip(times, units, power):
|
||||
# Make sure values passed make sense
|
||||
check_type('timestep', time, Real)
|
||||
check_greater_than('timestep', time, 0.0, True)
|
||||
check_greater_than('timestep', time, 0.0, False)
|
||||
check_type('timestep units', unit, str)
|
||||
check_type('power', watts, Real)
|
||||
check_greater_than('power', watts, 0.0, True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue