Salome HOME
Fixed GaussPointsOnField1
[modules/paravis.git] / src / PV_SWIG / VTKWrapping / presentations.py
index 8f4a57f42df3ccd866e84ba594e27f242a61815e..7c62380a5772be1c3dbc4e241b08a363db91e077 100644 (file)
@@ -2174,6 +2174,15 @@ def GaussPointsOnField1(proxy, entity, field_name,
     # Get time value
     time_value = get_time(proxy, timestamp_nb)
 
+    # Select field_name
+    fields_info = proxy.GetProperty("FieldsTreeInfo")[::2]
+    arr_name_with_dis=[elt.split("/")[-1] for elt in fields_info]
+    gauss_name=field_name+proxy.GetProperty("Separator").GetData()+'GAUSS'
+    if arr_name_with_dis.count(gauss_name) > 0:
+        index = arr_name_with_dis.index(gauss_name)
+        field = fields_info[index]
+        proxy.AllArrays = [field]
+
     # Set timestamp
     pvs.GetRenderView().ViewTime = time_value
     proxy.UpdatePipeline(time=time_value)