From abbe10bd9f64f17eb1e87bf6a46252d53b265b94 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 11 May 2010 17:59:00 +0200 Subject: [PATCH] fix: init sse correctly --- FDTD/engine_sse.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/FDTD/engine_sse.cpp b/FDTD/engine_sse.cpp index 74d0e73..c5044f4 100644 --- a/FDTD/engine_sse.cpp +++ b/FDTD/engine_sse.cpp @@ -43,13 +43,15 @@ Engine_sse::~Engine_sse() void Engine_sse::Init() { - numTS = 0; + Engine::Init(); + + Delete_N_3DArray(volt,numLines); + volt=NULL; // not used + Delete_N_3DArray(curr,numLines); + curr=NULL; // not used + f4_volt = Create_N_3DArray_v4sf(numLines); f4_curr = Create_N_3DArray_v4sf(numLines); - volt = 0; // not used - curr = 0; // not used - - InitExtensions(); } void Engine_sse::Reset()