]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
correct debug messages
authordmv <dmv@opencascade.com>
Tue, 12 Jan 2010 15:32:37 +0000 (15:32 +0000)
committerdmv <dmv@opencascade.com>
Tue, 12 Jan 2010 15:32:37 +0000 (15:32 +0000)
src/SMESH/SMESH_Mesh.cxx

index d39700ed360a2600e4a38aedbf9f059f0d65b4b4..ea3beb9f0838ffc28049416ad78b3edb9349c8af 100644 (file)
@@ -538,7 +538,7 @@ SMESH_Hypothesis::Hypothesis_Status
   }
 
   if(MYDEBUG) subMesh->DumpAlgoState(true);
-  SCRUTE(ret);
+  if(MYDEBUG) SCRUTE(ret);
   return ret;
 }
 
@@ -560,8 +560,10 @@ SMESH_Hypothesis::Hypothesis_Status
     throw SALOME_Exception(LOCALIZED("hypothesis does not exist"));
   
   SMESH_Hypothesis *anHyp = sc->mapHypothesis[anHypId];
-  int hypType = anHyp->GetType();
-  if(MYDEBUG) SCRUTE(hypType);
+  if(MYDEBUG) {
+    int hypType = anHyp->GetType();
+    SCRUTE(hypType);
+  }
   
   // shape