X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverCGNS%2FDriverCGNS_Write.cxx;h=517a56f25afe361d8d45c93e042b7fd11926fcdc;hb=d4a710ce52f6e76786a7b3845e2f7975dc9a00b1;hp=b4bd4034ed6b6fea25dbfa20af3d97b91e082c8c;hpb=faf45035fc7589def5fefb624752f48c989d3a6b;p=modules%2Fsmesh.git diff --git a/src/DriverCGNS/DriverCGNS_Write.cxx b/src/DriverCGNS/DriverCGNS_Write.cxx index b4bd4034e..517a56f25 100644 --- a/src/DriverCGNS/DriverCGNS_Write.cxx +++ b/src/DriverCGNS/DriverCGNS_Write.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -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