]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression of SMESH_TEST/Grids/smesh/imps/H2
authoreap <eap@opencascade.com>
Wed, 18 Apr 2012 16:08:39 +0000 (16:08 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2012 16:08:39 +0000 (16:08 +0000)
src/DriverCGNS/DriverCGNS_Write.cxx

index 851166f9e3177a42540677c457dbbe2917070383..517a56f25afe361d8d45c93e042b7fd11926fcdc 100644 (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