From c1d5ddb50978f305136ea0c859152f21372a88e3 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 26 Sep 2005 14:52:08 +0000 Subject: [PATCH] To fix a regression --- src/CONVERTOR/VISU_Convertor_impl.cxx | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index b64cd6d2..3a9db26d 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -58,7 +58,7 @@ static int MYVTKDEBUG = 0; #ifdef _DEBUG_ static int MYDEBUG = 0; -static int MYDEBUGWITHFILES = 1; +static int MYDEBUGWITHFILES = 0; //#define _DEXCEPT_ #else static int MYDEBUG = 0; @@ -1292,9 +1292,8 @@ namespace int aNbTuples = theSource->GetNumberOfPoints(); std::string aFieldName = GenerateFieldName(theField,theValForTime); INITMSG(MYDEBUG,"GetTimeStampOnGaussMesh - aNbTuples = "<myEntity){ case VISU::NODE_ENTITY : aDataSetAttributes = theSource->GetPointData(); @@ -1302,7 +1301,7 @@ namespace default: aDataSetAttributes = theSource->GetCellData(); } - // + int aNbComp = theField->myNbComp; vtkFloatArray *aFloatArray = vtkFloatArray::New(); switch(aNbComp){ @@ -1316,20 +1315,19 @@ namespace } aFloatArray->SetNumberOfTuples(aNbTuples); aFloatArray->SetName(aFieldName.c_str()); - // + vtkFloatArray *aDataArray = vtkFloatArray::New(); aDataArray->SetNumberOfComponents(aNbComp); aDataArray->SetNumberOfTuples(aNbTuples); aDataSetAttributes->AddArray(aDataArray); aDataArray->SetName("VISU_FIELD"); - // + const TGeom2Value& aGeom2Value = theValForTime->myGeom2Value; PGaussMeshImpl aGaussMesh = theValForTime->myGaussMesh; const TGeom2GaussSubMesh& aGeom2GaussSubMesh = aGaussMesh->myGeom2GaussSubMesh; TGeom2GaussSubMesh::const_iterator anIter = aGeom2GaussSubMesh.begin(); TVector aDataValues(aNbComp); - // for(int aTupleId = 0; anIter != aGeom2GaussSubMesh.end(); anIter++){ vtkIdType aGeom = anIter->first; PGaussSubMeshImpl aGaussSubMesh = anIter->second; @@ -1353,17 +1351,13 @@ namespace "; aNbComp = "<