Skip to content

Commit d6f103d

Browse files
Update generated code for DPF 261_daily on main (#2670)
Co-authored-by: PProfizi <[email protected]>
1 parent b1781df commit d6f103d

File tree

12 files changed

+140
-54
lines changed

12 files changed

+140
-54
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 41 additions & 41 deletions
Large diffs are not rendered by default.

src/ansys/dpf/gate/generated/capi.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,6 +2063,14 @@ def load_api(path):
20632063
dll.CSField_GetEntityIndex.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
20642064
dll.CSField_GetEntityIndex.restype = ctypes.c_int32
20652065

2066+
if hasattr(dll, "CSField_SetHeaderAsDataTree"):
2067+
dll.CSField_SetHeaderAsDataTree.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
2068+
dll.CSField_SetHeaderAsDataTree.restype = None
2069+
2070+
if hasattr(dll, "CSField_GetHeaderAsDataTree"):
2071+
dll.CSField_GetHeaderAsDataTree.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
2072+
dll.CSField_GetHeaderAsDataTree.restype = ctypes.c_void_p
2073+
20662074
if hasattr(dll, "CSField_GetData_For_DpfVector"):
20672075
dll.CSField_GetData_For_DpfVector.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.POINTER(ctypes.c_double)), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
20682076
dll.CSField_GetData_For_DpfVector.restype = None
@@ -4250,6 +4258,10 @@ def load_api(path):
42504258
dll.CSCustomTypeField_GetEntityIndex.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
42514259
dll.CSCustomTypeField_GetEntityIndex.restype = ctypes.c_int32
42524260

4261+
if hasattr(dll, "CSCustomTypeField_SetHeaderAsDataTree"):
4262+
dll.CSCustomTypeField_SetHeaderAsDataTree.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
4263+
dll.CSCustomTypeField_SetHeaderAsDataTree.restype = None
4264+
42534265
if hasattr(dll, "CSCustomTypeField_new_on_client"):
42544266
dll.CSCustomTypeField_new_on_client.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
42554267
dll.CSCustomTypeField_new_on_client.restype = ctypes.c_void_p

src/ansys/dpf/gate/generated/custom_type_field_abstract_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ def cscustom_type_field_get_entity_id(field, index):
131131
def cscustom_type_field_get_entity_index(field, id):
132132
raise NotImplementedError
133133

134+
@staticmethod
135+
def cscustom_type_field_set_header_as_data_tree(field, header):
136+
raise NotImplementedError
137+
134138
@staticmethod
135139
def cscustom_type_field_new_on_client(client, type, unitarySize, numEntities, numUnitaryData):
136140
raise NotImplementedError

src/ansys/dpf/gate/generated/custom_type_field_capi.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ def cscustom_type_field_get_entity_index(field, id):
289289
raise errors.DPFServerException(sError.value)
290290
return res
291291

292+
@staticmethod
293+
def cscustom_type_field_set_header_as_data_tree(field, header):
294+
errorSize = ctypes.c_int(0)
295+
sError = ctypes.c_wchar_p()
296+
res = capi.dll.CSCustomTypeField_SetHeaderAsDataTree(field._internal_obj if field is not None else None, header._internal_obj if header is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
297+
if errorSize.value != 0:
298+
raise errors.DPFServerException(sError.value)
299+
return res
300+
292301
@staticmethod
293302
def cscustom_type_field_new_on_client(client, type, unitarySize, numEntities, numUnitaryData):
294303
errorSize = ctypes.c_int(0)

src/ansys/dpf/gate/generated/field_abstract_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ def csfield_get_entity_id(field, index):
283283
def csfield_get_entity_index(field, id):
284284
raise NotImplementedError
285285

286+
@staticmethod
287+
def csfield_set_header_as_data_tree(field, header):
288+
raise NotImplementedError
289+
290+
@staticmethod
291+
def csfield_get_header_as_data_tree(field):
292+
raise NotImplementedError
293+
286294
@staticmethod
287295
def csfield_get_data_for_dpf_vector(field, var1, data, size):
288296
raise NotImplementedError

src/ansys/dpf/gate/generated/field_capi.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,24 @@ def csfield_get_entity_index(field, id):
639639
raise errors.DPFServerException(sError.value)
640640
return res
641641

642+
@staticmethod
643+
def csfield_set_header_as_data_tree(field, header):
644+
errorSize = ctypes.c_int(0)
645+
sError = ctypes.c_wchar_p()
646+
res = capi.dll.CSField_SetHeaderAsDataTree(field._internal_obj if field is not None else None, header._internal_obj if header is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
647+
if errorSize.value != 0:
648+
raise errors.DPFServerException(sError.value)
649+
return res
650+
651+
@staticmethod
652+
def csfield_get_header_as_data_tree(field):
653+
errorSize = ctypes.c_int(0)
654+
sError = ctypes.c_wchar_p()
655+
res = capi.dll.CSField_GetHeaderAsDataTree(field._internal_obj if field is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
656+
if errorSize.value != 0:
657+
raise errors.DPFServerException(sError.value)
658+
return res
659+
642660
@staticmethod
643661
def csfield_get_data_for_dpf_vector(field, var1, data, size):
644662
errorSize = ctypes.c_int(0)
7.5 KB
Binary file not shown.
1.5 KB
Binary file not shown.
25.9 KB
Binary file not shown.
4.34 KB
Binary file not shown.

0 commit comments

Comments
 (0)