From 28010f8f46d132190b1e59316976e93fc9f1fa99 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 24 Feb 2014 11:57:33 +0400 Subject: [PATCH] Adaptation of the SALOME test to the new MedReader: correction of the time stamp number (1 => 2), because old MedReader ignored time stamp with the name "0". --- src/KERNEL_PY/salome_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index 8035aa410..f95eae4f0 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -389,7 +389,7 @@ if salome.hasDesktop(): # in gui mode print "OK" print "Creating Scalar Map.......", - scalarmap = ScalarMapOnField(med_reader, node_entity, 'vitesse', 1) + scalarmap = ScalarMapOnField(med_reader, node_entity, 'vitesse', 2) if scalarmap is None: print "FAILED" else: @@ -405,7 +405,7 @@ if salome.hasDesktop(): # in gui mode view.ResetCamera() print "Creating Vectors..........", - vectors = VectorsOnField(med_reader, node_entity, 'vitesse', 1) + vectors = VectorsOnField(med_reader, node_entity, 'vitesse', 2) if vectors is None: print "FAILED" else: @@ -413,7 +413,7 @@ if salome.hasDesktop(): # in gui mode print "OK" print "Creating Iso Surfaces.....", - isosurfaces = IsoSurfacesOnField(med_reader, node_entity, 'vitesse', 1) + isosurfaces = IsoSurfacesOnField(med_reader, node_entity, 'vitesse', 2) if isosurfaces is None: print "FAILED" else: @@ -421,7 +421,7 @@ if salome.hasDesktop(): # in gui mode print "OK" print "Creating Cut Planes.......", - cutplanes = CutPlanesOnField(med_reader, node_entity, 'vitesse', 1, + cutplanes = CutPlanesOnField(med_reader, node_entity, 'vitesse', 2, nb_planes=30, orientation=Orientation.YZ) if cutplanes is None: print "FAILED" @@ -432,7 +432,7 @@ if salome.hasDesktop(): # in gui mode print "Creating Scalar Map On Deformed Shape.......", scalarmapondefshape = DeformedShapeAndScalarMapOnField(med_reader, node_entity, - 'vitesse', 1, + 'vitesse', 2, None, cell_entity, 'pression') -- 2.39.2