]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
0021803: EDF 2351 : Available versions of MED in TUI function ExportMED aren't consis...
authorvsr <vsr@opencascade.com>
Wed, 15 Feb 2017 12:03:49 +0000 (15:03 +0300)
committervsr <vsr@opencascade.com>
Thu, 24 Aug 2017 11:08:08 +0000 (14:08 +0300)
Update according changes of SMESH API.

examples/command_line/dataset.py
src/Macro/ShowSalomeObject.py

index 300af014df870176bd6384ffc1403739c74b5f6c..2ef76e7a8b1f15a174437b57c4a6e3c564fb5563 100644 (file)
@@ -49,10 +49,10 @@ def create_meshes(geometry, out_filename=None):
   isDone = Mesh_quad.Compute()
   smesh.SetName(Mesh_tri, 'Mesh_tri')
   if out_filename:
-    Mesh_tri.ExportMED(out_filename, 0, SMESH.MED_V2_2, 1, None ,1)
+    Mesh_tri.ExportMED(out_filename, overwrite=True)
   smesh.SetName(Mesh_quad, 'Mesh_quad')
   if out_filename:
-    Mesh_quad.ExportMED(out_filename, 0, SMESH.MED_V2_2, 0, None ,1)
+    Mesh_quad.ExportMED(out_filename, overwrite=False)
 
   # Set names of Mesh objects
   smesh.SetName(Regular_1D.GetAlgorithm(), 'Regular_1D')
index 464519d377f2c89db634ca4916432adf830db590..fd01a7be752103786b6815d1a6c54eed9b24705b 100644 (file)
@@ -70,7 +70,7 @@ for entry in selection:
             tmpf = tempfile.NamedTemporaryFile(suffix='.med')
             fname = tmpf.name
             tmpf.close()
-            mo.ExportToMEDX(fname, True, SMESH.MED_V2_2, True, True)
+            mo.ExportMED(fname, True, True, True)
             ShowParaviewView()
             p = MEDReader(FileName=fname)
             renderView = GetActiveViewOrCreate('RenderView')