From: apo Date: Mon, 21 Nov 2005 10:05:22 +0000 (+0000) Subject: To disable changes X-Git-Tag: BR-D5-38-2003_D2005-24-11~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb2c4d7e211b25cdf87333defa8a0228d0b1a69c;p=modules%2Fvisu.git To disable changes --- diff --git a/src/CONVERTOR/VISU_ConvertorUtils.cxx b/src/CONVERTOR/VISU_ConvertorUtils.cxx index 622caf4e..ad26b0ec 100644 --- a/src/CONVERTOR/VISU_ConvertorUtils.cxx +++ b/src/CONVERTOR/VISU_ConvertorUtils.cxx @@ -30,7 +30,7 @@ #include #ifdef _DEBUG_ -static int MYDEBUG = 2; +static int MYDEBUG = 0; #else static int MYDEBUG = 0; #endif @@ -51,13 +51,15 @@ namespace VISU TTimerLog - ::TTimerLog(const std::string& theName): + ::TTimerLog(int theIsDebug, + const std::string& theName): + myIsDebug(MYDEBUG? MYDEBUG + theIsDebug: MYDEBUG), myTimerLog(vtkTimerLog::New()), - myPrefixPrinter(MYDEBUG == 1), + myPrefixPrinter(myIsDebug == 1), myName(theName) { myCPUTime = myTimerLog->GetCPUTime(); - BEGMSG(MYDEBUG > 1,"{\n"); + BEGMSG(myIsDebug > 1,"{\n"); } TTimerLog @@ -65,10 +67,10 @@ namespace VISU { myCPUTime = myTimerLog->GetCPUTime() - myCPUTime; - if(MYDEBUG > 1){ - BEGMSG(MYDEBUG,"} = "< 1){ + BEGMSG(myIsDebug,"} = "<Delete(); diff --git a/src/CONVERTOR/VISU_ConvertorUtils.hxx b/src/CONVERTOR/VISU_ConvertorUtils.hxx index ae2f0881..154589fc 100644 --- a/src/CONVERTOR/VISU_ConvertorUtils.hxx +++ b/src/CONVERTOR/VISU_ConvertorUtils.hxx @@ -48,12 +48,14 @@ namespace VISU{ class TTimerLog { + int myIsDebug; double myCPUTime; std::string myName; vtkTimerLog* myTimerLog; MED::PrefixPrinter myPrefixPrinter; public: - TTimerLog(const std::string& theName); + TTimerLog(int theIsDebug, + const std::string& theName); ~TTimerLog(); }; diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index c35eef81..fda34bff 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -47,7 +47,7 @@ using MED::TFloat; using MED::EBooleen; #ifdef _DEBUG_ -static int MYDEBUG = 1; +static int MYDEBUG = 0; static int MYVALUEDEBUG = 0; static int MY_FAMILY_DEBUG = 0; static int MY_GROUP_DEBUG = 0; @@ -308,7 +308,7 @@ namespace const MED::TGeom2Size& theGeom2Size, VISU::TMEDValForTime& theValForTime) { - TTimerLog aTimerLog("InitProfile"); + TTimerLog aTimerLog(MYDEBUG,"InitProfile"); INITMSG(MYDEBUG,"InitProfile"<myMeshInfo; @@ -630,13 +630,13 @@ namespace const MED::TEntityInfo& theEntityInfo, MED::PWrapper theMEDWrapper) { - TTimerLog aTimerLog("BuildFieldMap"); + TTimerLog aTimerLog(MYDEBUG,"BuildFieldMap"); TInt aNbFields = theMEDWrapper->GetNbFields(); MED::PMeshInfo aMeshInfo = theMesh->myMeshInfo; const std::string& aMeshName = theMesh->myName; INITMSG(MYDEBUG,"BuildFieldMap: aNbFields = "<GetPFieldInfo(aMeshInfo,iField); TInt aNbComp = aFieldInfo->GetNbComp(); std::string aFieldName = aFieldInfo->GetName(); @@ -673,7 +673,7 @@ namespace } for(TInt iTimeStamp = 1; iTimeStamp <= aNbTimeStamps; iTimeStamp++){ - TTimerLog aTimerLog("GetPTimeStampInfo"); + TTimerLog aTimerLog(MYDEBUG,"GetPTimeStampInfo"); MED::PTimeStampInfo aTimeStampInfo = theMEDWrapper->GetPTimeStampInfo(aFieldInfo, aMEntity, aGeom2Size, @@ -703,7 +703,7 @@ namespace const MED::TFamilyInfoSet& theFamilyInfoSet, MED::PWrapper theMEDWrapper) { - TTimerLog aTimerLog("BuildFamilyMap"); + TTimerLog aTimerLog(MYDEBUG,"BuildFamilyMap"); INITMSG(MYDEBUG,"BuildFamilyMap\n"); MED::PMeshInfo aMeshInfo = theMesh->myMeshInfo; @@ -775,7 +775,7 @@ namespace BuildGroupMap(PMEDMesh theMesh, const MED::TFamilyInfoSet& theFamilyInfoSet) { - TTimerLog aTimerLog("BuildGroupMap"); + TTimerLog aTimerLog(MYDEBUG,"BuildGroupMap"); INITMSG(MYDEBUG,"BuildGroupMap\n"); TGroupMap& aGroupMap = theMesh->myGroupMap; @@ -934,7 +934,7 @@ VISU_Convertor* VISU_MedConvertor ::BuildEntities() { - TTimerLog aTimerLog("BuildEntities"); + TTimerLog aTimerLog(MYDEBUG,"BuildEntities"); MED::PWrapper aMed = MED::CrWrapper(myFileInfo.absFilePath().latin1()); TInt aNbMeshes = aMed->GetNbMeshes(); @@ -946,7 +946,7 @@ VISU_MedConvertor #ifndef _DEXCEPT_ try{ #endif - TTimerLog aTimerLog("GetPMeshInfo"); + TTimerLog aTimerLog(MYDEBUG,"GetPMeshInfo"); MED::PMeshInfo aMeshInfo = aMed->GetPMeshInfo(iMesh); std::string aMeshName = aMeshInfo->GetName(); @@ -1005,7 +1005,7 @@ VISU_Convertor* VISU_MedConvertor ::BuildFields() { - TTimerLog aTimerLog("BuildFields"); + TTimerLog aTimerLog(MYDEBUG,"BuildFields"); MED::PWrapper aMed = MED::CrWrapper(myFileInfo.absFilePath().latin1()); TInt aNbMeshes = aMed->GetNbMeshes(); @@ -1017,7 +1017,7 @@ VISU_MedConvertor #ifndef _DEXCEPT_ try{ #endif - TTimerLog aTimerLog("GetPMeshInfo"); + TTimerLog aTimerLog(MYDEBUG,"GetPMeshInfo"); MED::PMeshInfo aMeshInfo = aMed->GetPMeshInfo(iMesh); std::string aMeshName = aMeshInfo->GetName(); @@ -1062,7 +1062,7 @@ VISU_Convertor* VISU_MedConvertor ::BuildMinMax() { - TTimerLog aTimerLog("BuildMinMax"); + TTimerLog aTimerLog(MYDEBUG,"BuildMinMax"); MED::PWrapper aMed = MED::CrWrapper(myFileInfo.absFilePath().latin1()); MED::TKey2Gauss aKey2Gauss = MED::GetKey2Gauss(aMed); @@ -1077,7 +1077,7 @@ VISU_MedConvertor #ifndef _DEXCEPT_ try{ #endif - TTimerLog aTimerLog("BuildMinMax - GetPMeshInfo"); + TTimerLog aTimerLog(MYDEBUG,"BuildMinMax - GetPMeshInfo"); MED::PMeshInfo aMeshInfo = aMed->GetPMeshInfo(iMesh); std::string aMeshName = aMeshInfo->GetName(); @@ -1099,7 +1099,7 @@ VISU_MedConvertor MED::TEntityInfo anEntityInfo = aMed->GetEntityInfo(aMeshInfo); for(TInt iField = 1; iField <= aNbFields; iField++){ - TTimerLog aTimerLog("BuildMinMax - GetPFieldInfo()"); + TTimerLog aTimerLog(MYDEBUG,"BuildMinMax - GetPFieldInfo()"); MED::PFieldInfo aFieldInfo = aMed->GetPFieldInfo(aMeshInfo,iField); std::string aFieldName = aFieldInfo->GetName(); INITMSG(MYDEBUG,"- aFieldName = '"<myMinMaxArr; for(TInt iTimeStamp = aNbTimeStamps; iTimeStamp >= 1; iTimeStamp--){ - TTimerLog aTimerLog("BuildMinMax - GetPTimeStampInfo()"); + TTimerLog aTimerLog(MYDEBUG,"BuildMinMax - GetPTimeStampInfo()"); INITMSG(MYDEBUG,"- iTimeStamp = "<GetPTimeStampInfo(aFieldInfo, @@ -1223,7 +1223,7 @@ VISU_Convertor* VISU_MedConvertor ::BuildGroups() { - TTimerLog aTimerLog("BuildGroups"); + TTimerLog aTimerLog(MYDEBUG,"BuildGroups"); MED::PWrapper aMed = MED::CrWrapper(myFileInfo.absFilePath().latin1()); TInt aNbMeshes = aMed->GetNbMeshes(); @@ -1235,7 +1235,7 @@ VISU_MedConvertor #ifndef _DEXCEPT_ try{ #endif - TTimerLog aTimerLog("GetPMeshInfo"); + TTimerLog aTimerLog(MYDEBUG,"GetPMeshInfo"); MED::PMeshInfo aMeshInfo = aMed->GetPMeshInfo(iMesh); std::string aMeshName = aMeshInfo->GetName(); @@ -1292,7 +1292,7 @@ VISU_MedConvertor ::LoadMeshOnEntity(VISU::PMeshImpl theMesh, VISU::PMeshOnEntityImpl theMeshOnEntity) { - TTimerLog aTimerLog("LoadMeshOnEntity"); + TTimerLog aTimerLog(MYDEBUG,"LoadMeshOnEntity"); INITMSG(MYDEBUG,"LoadMeshOnEntity"<myMeshOnEntityMap[VISU::NODE_ENTITY]; @@ -1481,7 +1481,7 @@ VISU_MedConvertor const VISU::PMEDMesh theMesh, const VISU::PMEDFamily theFamily) { - TTimerLog aTimerLog("LoadPointsOnFamily"); + TTimerLog aTimerLog(MYDEBUG,"LoadPointsOnFamily"); try{ if(theFamily->myIsDone) return 0; @@ -1519,7 +1519,7 @@ VISU_MedConvertor const VISU::PMEDMesh theMesh, const VISU::PMEDMeshOnEntity theMeshOnEntity) { - TTimerLog aTimerLog("LoadCellsOnEntity"); + TTimerLog aTimerLog(MYDEBUG,"LoadCellsOnEntity"); #ifndef _DEXCEPT_ try{ #endif @@ -1746,7 +1746,7 @@ VISU_MedConvertor const VISU::PMEDMeshOnEntity theMeshOnEntity, const VISU::PMEDFamily theFamily) { - TTimerLog aTimerLog("LoadCellsOnFamily"); + TTimerLog aTimerLog(MYDEBUG,"LoadCellsOnFamily"); #ifndef _DEXCEPT_ try{ #endif @@ -1820,7 +1820,7 @@ LoadProfile(const MED::PWrapper& theMed, VISU::TMEDValForTime& theValForTime, VISU::TMEDMeshOnEntity& theMeshOnEntity) { - TTimerLog aTimerLog("LoadProfile"); + TTimerLog aTimerLog(MYDEBUG,"LoadProfile"); INITMSG(MYDEBUG,"LoadProfile"<