Salome HOME
IPAL54303: CGNS export problems
authoreap <eap@opencascade.com>
Thu, 7 Sep 2017 16:08:53 +0000 (19:08 +0300)
committereap <eap@opencascade.com>
Thu, 7 Sep 2017 16:08:53 +0000 (19:08 +0300)
 more fix

src/DriverCGNS/DriverCGNS_Write.cxx

index 3692ae5..5f33479 100644 (file)
@@ -623,7 +623,7 @@ Driver_Mesh::Status DriverCGNS_Write::Perform()
       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);