minor bugfix: missing initialization

pull/1/head
Sebastian Held 2010-10-28 21:50:50 +02:00
parent 907ac3cff2
commit 6728cee054
1 changed files with 4 additions and 0 deletions

View File

@ -28,13 +28,17 @@ Excitation::Excitation( double timestep )
Volt_delay = 0; Volt_delay = 0;
Volt_amp = 0; Volt_amp = 0;
Volt_dir = 0; Volt_dir = 0;
Volt_Count = 0;
Curr_delay = 0; Curr_delay = 0;
Curr_amp = 0; Curr_amp = 0;
Curr_dir = 0; Curr_dir = 0;
Curr_Count = 0;
for (int n=0;n<3;++n) { for (int n=0;n<3;++n) {
Volt_index[n] = 0; Volt_index[n] = 0;
Curr_index[n] = 0; Curr_index[n] = 0;
Volt_Count_Dir[n] = 0;
Curr_Count_Dir[n] = 0;
} }
dT = timestep; dT = timestep;