Skip to content

Commit b58d056

Browse files
committed
Fixing issues with rebase
1 parent b110d2b commit b58d056

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def csproperty_field_new(numEntities, data_size):
4747
def csproperty_field_new_location(numEntities, data_size, location):
4848
raise NotImplementedError
4949

50+
@staticmethod
5051
def csproperty_field_new_with_transformation(numEntities, data_size, wf, input_name, output_name):
5152
raise NotImplementedError
5253

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ def csproperty_field_new(numEntities, data_size):
9191
raise errors.DPFServerException(sError.value)
9292
return res
9393

94+
@staticmethod
95+
def csproperty_field_new_location(numEntities, data_size, location):
96+
errorSize = ctypes.c_int(0)
97+
sError = ctypes.c_wchar_p()
98+
res = capi.dll.CSPropertyField_new_location(utils.to_int32(numEntities), utils.to_int32(data_size), utils.to_char_ptr(location), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
99+
if errorSize.value != 0:
100+
raise errors.DPFServerException(sError.value)
101+
return res
102+
94103
@staticmethod
95104
def csproperty_field_new_with_transformation(numEntities, data_size, wf, input_name, output_name):
96105
errorSize = ctypes.c_int(0)

0 commit comments

Comments
 (0)