From 49d5407f41148f881b8f9427585649e9e3a5641d Mon Sep 17 00:00:00 2001 From: "gitlab@srinivas.gs" Date: Fri, 23 Aug 2019 10:28:26 -0400 Subject: [PATCH] minor error checks --- @xolotl/integrate.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/@xolotl/integrate.m b/@xolotl/integrate.m index c5e63903..900006f1 100644 --- a/@xolotl/integrate.m +++ b/@xolotl/integrate.m @@ -114,6 +114,10 @@ self.sim_dt = self.dt; end +assert(self.t_end > 1,'t_end too short') +assert(self.sim_dt > 0,'sim_dt must be positive') +assert(self.dt > 0,'dt must be positive') + % check that the simulation doesn't exceed C++ intmax assert(self.t_end/self.sim_dt