]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Adaptation of the SALOME test to the new MedReader:
authorrnv <rnv@opencascade.com>
Mon, 24 Feb 2014 07:57:33 +0000 (11:57 +0400)
committerrnv <rnv@opencascade.com>
Mon, 24 Feb 2014 07:57:33 +0000 (11:57 +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 16dc7410a685bfba6ba71d9f6522faac86d37aaf..fb133259e473670e3de2928f29290c38ad9142ed 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')