From 6728cee05494f7143d786937fbba39d59094156b Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Thu, 28 Oct 2010 21:50:50 +0200 Subject: [PATCH] minor bugfix: missing initialization --- FDTD/excitation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FDTD/excitation.cpp b/FDTD/excitation.cpp index 7b2a95b..4fac237 100644 --- a/FDTD/excitation.cpp +++ b/FDTD/excitation.cpp @@ -28,13 +28,17 @@ Excitation::Excitation( double timestep ) Volt_delay = 0; Volt_amp = 0; Volt_dir = 0; + Volt_Count = 0; Curr_delay = 0; Curr_amp = 0; Curr_dir = 0; + Curr_Count = 0; for (int n=0;n<3;++n) { Volt_index[n] = 0; Curr_index[n] = 0; + Volt_Count_Dir[n] = 0; + Curr_Count_Dir[n] = 0; } dT = timestep;