Salome HOME
improve comment
authoreap <eap@opencascade.com>
Thu, 2 Sep 2010 06:26:55 +0000 (06:26 +0000)
committereap <eap@opencascade.com>
Thu, 2 Sep 2010 06:26:55 +0000 (06:26 +0000)
src/SMESH/SMESH_Gen.cxx
src/SMESH/SMESH_Mesh.cxx

index f2c7f2eef7b1e0afe378b6dc8769fcb504d973e1..47947add9a6aeb8547b8f5e8c1d3a105ea046682 100644 (file)
@@ -191,7 +191,7 @@ bool SMESH_Gen::Compute(SMESH_Mesh &          aMesh,
     }
     
     // ------------------------------------------------------------
-    // sort list of meshes according to mesh order
+    // sort list of submeshes according to mesh order
     // ------------------------------------------------------------
     aMesh.SortByMeshOrder( smWithAlgoSupportingSubmeshes );
 
index 5cf9ba6c52a40067a1575fc1e9d11be5c763d165..b37c0e646ee174bd43817bad2819ce9061094b2c 100644 (file)
@@ -457,6 +457,9 @@ SMESH_Hypothesis::Hypothesis_Status
   // NotConformAllowed can be only global
   if ( !isGlobalHyp )
   {
+    // NOTE: this is not a correct way to check a name of hypothesis,
+    // there should be an attribute of hypothesis saying that it can/can't
+    // be global/local
     string hypName = anHyp->GetName();
     if ( hypName == "NotConformAllowed" )
     {
@@ -499,7 +502,7 @@ SMESH_Hypothesis::Hypothesis_Status
       }
     }
   }
-  HasModificationsToDiscard(); // to reset _isModified flag if mesh become empty
+  HasModificationsToDiscard(); // to reset _isModified flag if a mesh becomes empty
 
   if(MYDEBUG) subMesh->DumpAlgoState(true);
   if(MYDEBUG) SCRUTE(ret);