Salome HOME
Merge branch 'master' into pre/penta18
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 15 Sep 2017 09:15:53 +0000 (11:15 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 15 Sep 2017 09:15:53 +0000 (11:15 +0200)
1  2 
src/DriverCGNS/DriverCGNS_Write.cxx

@@@ -131,11 -131,6 +131,11 @@@ namespac
          cgTypes   [SMDSEntity_Quad_Penta] = CGNS_ENUMV( PENTA_15 );
        }
        {
 +        static int ids[] = { 0,2,1,3,5,4,8,7,6,9,11,10,14,13,12,15,16,17 }; // TODO: check CGNS ORDER
 +        interlaces[SMDSEntity_BiQuad_Penta] = ids;
 +        cgTypes   [SMDSEntity_BiQuad_Penta] = CGNS_ENUMV( PENTA_18 );
 +      }
 +      {
          static int ids[] = { 0,3,2,1,4,7,6,5 };
          interlaces[SMDSEntity_Hexa] = ids;
          cgTypes   [SMDSEntity_Hexa] = CGNS_ENUMV( HEXA_8 );
@@@ -628,7 -623,7 +628,7 @@@ Driver_Mesh::Status DriverCGNS_Write::P
        return addMessage( cg_get_error(), /*fatal = */true);
  
      // write BC location
-     if ( location != CGNS_ENUMV( Vertex ))
+     if ( location != CGNS_ENUMV( Vertex ) || meshDim == 1 )
      {
        if ( cg_boco_gridlocation_write( _fn, iBase, iZone, iBC, location) != CG_OK )
          return addMessage( cg_get_error(), /*fatal = */false);