From b27126c1c171ce2d48a29c6c78acffafc5c02bba Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 4 Aug 2005 05:50:36 +0000 Subject: [PATCH] To add debug information --- src/CONVERTOR/VISU_MedConvertor.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 62e37408..7df23f99 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -48,10 +48,12 @@ using MED::EBooleen; #ifdef _DEBUG_ static int MYDEBUG = 0; +static int MYVALUEDEBUG = 0; static int MY_FAMILY_DEBUG = 0; static int MY_GROUP_DEBUG = 0; #else static int MYDEBUG = 0; +static int MYVALUEDEBUG = 0; static int MY_FAMILY_DEBUG = 0; static int MY_GROUP_DEBUG = 0; #endif @@ -1336,14 +1338,19 @@ VISU_MedConvertor for(TInt iElem = 0; iElem < aNbElem; iElem++){ TValueSliceArr aVValueSliceArr = aVMeshValue.GetGaussValueSliceArr(iElem); MED::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetValueSliceArr(iElem); + ADDMSG(MYVALUEDEBUG,"{"); for(TInt iGauss = 0; iGauss < aNbGauss; iGauss++){ TValueSlice& aVValueSlice = aVValueSliceArr[iGauss]; const MED::TCValueSlice& aMValueSlice = aMValueSliceArr[iGauss]; for(TInt iComp = 0; iComp < aNbComp; iComp++){ aVValueSlice[iComp] = aMValueSlice[iComp]; + ADDMSG(MYVALUEDEBUG,aVValueSlice[iComp]<<" "); } + ADDMSG(MYVALUEDEBUG,"| "); } + ADDMSG(MYVALUEDEBUG,"} "); } + ADDMSG(MYDEBUG,"\n"); } } -- 2.39.2