]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Adaptation of the SALOME test to the new MedReader: V7_3_1rc1
authorrnv <rnv@opencascade.com>
Mon, 24 Feb 2014 07:57:33 +0000 (11:57 +0400)
committervsr <vsr@opencascade.com>
Wed, 5 Mar 2014 06:19:50 +0000 (10:19 +0400)
correction of the time stamp number (1 => 2), because old MedReader
ignored time stamp with the name "0".

src/KERNEL_PY/salome_test.py

index 8035aa41099eccd37f3939fe4a48ab9028c8af39..f95eae4f08e0545b74d4ca6b4a97a17f87a3fda0 100755 (executable)
@@ -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')