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 3692ae57b455f87844a258d19446a00c2b54f8b4..5f334797a5ea74103dde5bc4cba76c32e50fe5ae 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);