X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverCGNS%2FDriverCGNS_Write.cxx;h=844bb863fb224023fed8656ba464d80ec2b2e729;hb=55290963c776b86cb15aea30629389d503c1d3b9;hp=f83fe915e283cb75693c039c6f63f3717a4f8488;hpb=193c49c87753b6ccabb2b5e6dc935aa480d2d43e;p=modules%2Fsmesh.git diff --git a/src/DriverCGNS/DriverCGNS_Write.cxx b/src/DriverCGNS/DriverCGNS_Write.cxx index f83fe915e..844bb863f 100644 --- a/src/DriverCGNS/DriverCGNS_Write.cxx +++ b/src/DriverCGNS/DriverCGNS_Write.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 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 @@ -172,7 +172,7 @@ namespace { for ( int t = 0; t < NofValidBCTypes; ++t ) { - CGNS_ENUMT( BCType_t ) type = CGNS_ENUMT( BCType_t)( t ); + CGNS_ENUMT( BCType_t ) type = CGNS_ENUMT( BCType_t )( t ); string typeName = cg_BCTypeName( type ); if ( typeName == &groupName[0] + bcBeg ) { @@ -251,20 +251,20 @@ Driver_Mesh::Status DriverCGNS_Write::Perform() // -------------- const int spaceDim = 3; - int meshDim = 1; - if ( myMesh->NbFaces() > 0 ) meshDim = 2; + int meshDim = 1; + if ( myMesh->NbFaces() > 0 ) meshDim = 2; if ( myMesh->NbVolumes() > 0 ) meshDim = 3; if ( myMeshName.empty() ) { int nbases = 0; - if ( cg_nbases( _fn, &nbases) == CG_OK) + if ( cg_nbases( _fn, &nbases) == CG_OK ) myMeshName = ( SMESH_Comment("Base_") << nbases+1 ); else myMeshName = "Base_0"; } int iBase; - if ( cg_base_write( _fn, myMeshName.c_str(), meshDim, spaceDim, &iBase)) + if ( cg_base_write( _fn, myMeshName.c_str(), meshDim, spaceDim, &iBase )) return addMessage( cg_get_error(), /*fatal = */true ); // create a Zone @@ -330,7 +330,7 @@ Driver_Mesh::Status DriverCGNS_Write::Perform() // write into a section all successive elements of one geom type int iSec; vector< cgsize_t > elemData; - SMDS_ElemIteratorPtr elemIt = myMesh->elementsIterator(); + SMDS_ElemIteratorPtr elemIt = myMesh->elementsIterator(); const SMDS_MeshElement* elem = elemIt->next(); while ( elem ) {