From 4f8aa3faa8e4cad9b8b78013beb624da22f2159d Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 26 Oct 2010 18:47:21 +0200 Subject: [PATCH] fix in Operator_SSE_Compressed: cleanup old compression prior to an InitOperator() --- FDTD/operator_sse_compressed.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/FDTD/operator_sse_compressed.cpp b/FDTD/operator_sse_compressed.cpp index cd18b14..be214bd 100644 --- a/FDTD/operator_sse_compressed.cpp +++ b/FDTD/operator_sse_compressed.cpp @@ -67,6 +67,7 @@ void Operator_SSE_Compressed::DumpOperator2File(string filename) int Operator_SSE_Compressed::CalcECOperator() { + m_Use_Compression = false; Operator_sse::CalcECOperator(); m_Use_Compression = CompressOperator(); @@ -89,6 +90,7 @@ void Operator_SSE_Compressed::Reset() m_Op_index = 0; } + m_Use_Compression = false; for (int n=0; n<3; n++) { f4_vv_Compressed[n].clear(); @@ -100,6 +102,16 @@ void Operator_SSE_Compressed::Reset() void Operator_SSE_Compressed::InitOperator() { + //cleanup compression + m_Use_Compression = false; + for (int n=0; n<3; n++) + { + f4_vv_Compressed[n].clear(); + f4_vi_Compressed[n].clear(); + f4_iv_Compressed[n].clear(); + f4_ii_Compressed[n].clear(); + } + Operator_sse::InitOperator(); m_Op_index = Create3DArray( numLines );