]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix bug of work with ViscousLayers hyp introduced during
authoreap <eap@opencascade.com>
Tue, 22 Feb 2011 14:30:49 +0000 (14:30 +0000)
committereap <eap@opencascade.com>
Tue, 22 Feb 2011 14:30:49 +0000 (14:30 +0000)
"Redesign again to work with composed cube edges"

src/StdMeshers/StdMeshers_Hexa_3D.cxx

index 4138a37d4e3499a3a76a8c76dabfa2a53e51fb5e..de259316b69a0b1c93aced4004ea974825d40427 100644 (file)
@@ -424,7 +424,9 @@ bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh &         aMesh,
       }
     }
     // check if the loaded grid corresponds to nb of quadrangles
-    const int nbQuads = meshDS->MeshElements( F )->NbElements();
+    const SMESHDS_SubMesh* faceSubMesh =
+      proxymesh ? proxymesh->GetSubMesh( F ) : meshDS->MeshElements( F );
+    const int nbQuads = faceSubMesh->NbElements();
     const int nbHor = aCubeSide[i]._u2nodesMap.size() - 1;
     const int nbVer = aCubeSide[i]._u2nodesMap.begin()->second.size() - 1;
     if ( nbQuads != nbHor * nbVer )