Salome HOME
Merge branch 'akl/tests_update'
[modules/paravis.git] / test / VisuPrs / 3D_viewer / A1.py
index f645d874dbce902fa38ab4d8c33db5d2254f555e..a97335df30977372c09491fc6266e1690fc997fc 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2010-2012  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2014  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -28,7 +28,7 @@ import paravis
 import time
 
 # Directory for saving snapshots
-picturedir = get_picture_dir(sys.argv[1], "3D_viewer/A1")
+picturedir = get_picture_dir("3D_viewer/A1")
 
 # Add path separator to the end of picture path if necessery
 if not picturedir.endswith(os.sep):
@@ -68,7 +68,7 @@ field_name = 'VITESSE'
 my_view = GetRenderView()
 
 print "\nCreating plot3d.......",
-plot3d = Plot3DOnField(proxy, EntityType.CELL, field_name, 1)
+plot3d = Plot3DOnField(proxy, EntityType.NODE, field_name, 1)
 if plot3d is None:
     raise RuntimeError("Error!!! Presentation wasn't created...")