fix in Operator_SSE_Compressed: cleanup old compression prior to an InitOperator()

pull/1/head
Thorsten Liebig 2010-10-26 18:47:21 +02:00
parent f204bc2723
commit 4f8aa3faa8
1 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,7 @@ void Operator_SSE_Compressed::DumpOperator2File(string filename)
int Operator_SSE_Compressed::CalcECOperator() int Operator_SSE_Compressed::CalcECOperator()
{ {
m_Use_Compression = false;
Operator_sse::CalcECOperator(); Operator_sse::CalcECOperator();
m_Use_Compression = CompressOperator(); m_Use_Compression = CompressOperator();
@ -89,6 +90,7 @@ void Operator_SSE_Compressed::Reset()
m_Op_index = 0; m_Op_index = 0;
} }
m_Use_Compression = false;
for (int n=0; n<3; n++) for (int n=0; n<3; n++)
{ {
f4_vv_Compressed[n].clear(); f4_vv_Compressed[n].clear();
@ -100,6 +102,16 @@ void Operator_SSE_Compressed::Reset()
void Operator_SSE_Compressed::InitOperator() 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(); Operator_sse::InitOperator();
m_Op_index = Create3DArray<unsigned int>( numLines ); m_Op_index = Create3DArray<unsigned int>( numLines );