From: eap Date: Tue, 22 Feb 2011 14:30:49 +0000 (+0000) Subject: Fix bug of work with ViscousLayers hyp introduced during X-Git-Tag: StartingPortingMED3~45 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=01f4ed1a85f71a27c97def3d9c1fd2cc26646f51 Fix bug of work with ViscousLayers hyp introduced during "Redesign again to work with composed cube edges" --- diff --git a/src/StdMeshers/StdMeshers_Hexa_3D.cxx b/src/StdMeshers/StdMeshers_Hexa_3D.cxx index 4138a37d4..de259316b 100644 --- a/src/StdMeshers/StdMeshers_Hexa_3D.cxx +++ b/src/StdMeshers/StdMeshers_Hexa_3D.cxx @@ -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 )