+
+def _extract_all_arrays_of_type(array_type, source):
+ import re
+ #sep = source.GetProperty("Separator").GetData() # "@@][@@"
+ arrays = source.AllArrays
+ result = []
+ for arr in arrays:
+ match = re.search("ComSup[^/]*/(.*)@@\]\[@@(.*)", arr)
+ field_name = match.group(1)
+ arr_typ = match.group(2)
+ if arr_typ == array_type:
+ result += [field_name]
+ pass
+ return result
+#
+
+def _extract_cell_arrays(source):
+ return _extract_all_arrays_of_type("P0", source)
+#
+def _extract_point_arrays(source):
+ return _extract_all_arrays_of_type("P1", source)
+#
+