From 4966ff7c5dff243853881c75125994dda6d3a887 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 12 Feb 2020 12:21:25 -0600 Subject: [PATCH] Ensure timesteps are positive Co-Authored-By: Andrew Johnson --- openmc/deplete/abc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/deplete/abc.py b/openmc/deplete/abc.py index 95bd3326b8..31479f9952 100644 --- a/openmc/deplete/abc.py +++ b/openmc/deplete/abc.py @@ -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)