Regression of SMESH_TEST/Grids/smesh/imps/H2

This commit is contained in:
eap 2012-04-18 16:08:39 +00:00
parent e57adf25d6
commit 5aacc45760

View File

@ -387,7 +387,7 @@ Driver_Mesh::Status DriverCGNS_Write::Perform()
// Write polyhedral volumes
// -------------------------
if ( myMesh->GetMeshInfo().NbElements() != cgID ) // polyhedra or hexagonal prisms remain
if ( myMesh->GetMeshInfo().NbElements() > cgID-1 ) // polyhedra or hexagonal prisms remain
{
// the polyhedron (NFACE_n) is described as a set of signed face IDs,
// so first we are to write all polygones (NGON_n) bounding polyhedrons