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