diff --git a/FDTD/engine_sse.cpp b/FDTD/engine_sse.cpp index c5044f4..d7fb842 100644 --- a/FDTD/engine_sse.cpp +++ b/FDTD/engine_sse.cpp @@ -29,6 +29,8 @@ Engine_sse* Engine_sse::New(const Operator_sse* op) Engine_sse::Engine_sse(const Operator_sse* op) : Engine(op) { Op = op; + f4_volt = 0; + f4_curr = 0; for (int n=0;n<3;++n) { numLines[n] = Op->GetNumberOfLines(n); @@ -38,7 +40,7 @@ Engine_sse::Engine_sse(const Operator_sse* op) : Engine(op) Engine_sse::~Engine_sse() { - this->Reset(); + Reset(); } void Engine_sse::Init() @@ -56,6 +58,7 @@ void Engine_sse::Init() void Engine_sse::Reset() { + Engine::Reset(); Delete_N_3DArray_v4sf(f4_volt,numLines); f4_volt = 0; Delete_N_3DArray_v4sf(f4_curr,numLines);