From 01f4ed1a85f71a27c97def3d9c1fd2cc26646f51 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 22 Feb 2011 14:30:49 +0000 Subject: [PATCH] Fix bug of work with ViscousLayers hyp introduced during "Redesign again to work with composed cube edges" --- src/StdMeshers/StdMeshers_Hexa_3D.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) -- 2.30.2