From f059ff5a58bf3fdca83169e7afbf8ae90b48c192 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 21 Feb 2011 12:12:59 +0100 Subject: [PATCH] processings: fixed missing star/stop initializing --- Common/processfields.cpp | 8 ++------ Common/processing.cpp | 6 ++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Common/processfields.cpp b/Common/processfields.cpp index a6c16a7..e9835a5 100644 --- a/Common/processfields.cpp +++ b/Common/processfields.cpp @@ -26,12 +26,6 @@ ProcessFields::ProcessFields(Engine_Interface_Base* eng_if) : Processing(eng_if) m_DumpType = E_FIELD_DUMP; // vtk-file is default m_fileType = VTK_FILETYPE; - subSample[0]=1; - subSample[1]=1; - subSample[2]=1; - optResolution[0]=0; - optResolution[1]=0; - optResolution[2]=0; m_SampleType = NONE; SetPrecision(6); m_dualTime = false; @@ -41,6 +35,8 @@ ProcessFields::ProcessFields(Engine_Interface_Base* eng_if) : Processing(eng_if) numLines[n]=0; posLines[n]=NULL; discLines[n]=NULL; + subSample[n]=1; + optResolution[n]=0; } } diff --git a/Common/processing.cpp b/Common/processing.cpp index 272a8ed..a105984 100644 --- a/Common/processing.cpp +++ b/Common/processing.cpp @@ -38,6 +38,12 @@ Processing::Processing(Engine_Interface_Base* eng_if) m_dualMesh = false; m_dualTime = false; m_Mesh_Type = CARTESIAN_MESH; + + for (int n=0;n<3;++n) + { + start[n]=0; + stop[n]=0; + } } Processing::~Processing()