Salome HOME
IPAL54303: CGNS export problems
[modules/smesh.git] / 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);