From f7a17f3678be77e6c782ee0aad2b51acac58e9d6 Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Thu, 1 Apr 2010 09:38:08 +0200 Subject: [PATCH] bugfix: SetProcessInterval --- FDTD/processing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FDTD/processing.h b/FDTD/processing.h index a5cd4e3..f9dd017 100644 --- a/FDTD/processing.h +++ b/FDTD/processing.h @@ -31,7 +31,7 @@ public: virtual void DefineStartStopCoord(double* dstart, double* dstop); - void SetProcessInterval(unsigned int interval) {ProcessInterval=interval;} + void SetProcessInterval(unsigned int interval) {ProcessInterval=max((unsigned int)1,interval);} virtual int Process() {return GetNextInterval();} //! If Disabled Process() will do nothing...