From: eap Date: Wed, 18 Apr 2012 16:08:39 +0000 (+0000) Subject: Regression of SMESH_TEST/Grids/smesh/imps/H2 X-Git-Tag: TRIPOLI_323~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5aacc45760c5f952d6774a07b9deaf349d670878;p=modules%2Fsmesh.git Regression of SMESH_TEST/Grids/smesh/imps/H2 --- diff --git a/src/DriverCGNS/DriverCGNS_Write.cxx b/src/DriverCGNS/DriverCGNS_Write.cxx index 851166f9e..517a56f25 100644 --- a/src/DriverCGNS/DriverCGNS_Write.cxx +++ b/src/DriverCGNS/DriverCGNS_Write.cxx @@ -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