Fix bug of work with ViscousLayers hyp introduced during

"Redesign again to work with composed cube edges"
This commit is contained in:
eap 2011-02-22 14:30:49 +00:00
parent e377bfeb20
commit 01f4ed1a85

View 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 )