File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
ompi/mpi/bindings/ompi_bindings Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1752,14 +1752,15 @@ def type_text(self, enable_count=False):
17521752 type_name = self .mangle_name ('MPI_Win_copy_attr_function' )
17531753 return f'{ type_name } *'
17541754
1755- @property
1756- def argument (self ):
1757- return f'(MPI_Win_copy_attr_function *) { self .name } '
1755+ # @property
1756+ # def argument(self):
1757+ # return f'(MPI_Win_copy_attr_function *) {self.name}'
17581758
17591759 @property
17601760 def init_code (self ):
17611761 code = []
1762- code = ['ompi_abi_wrapper_helper_t *helper = NULL;' ]
1762+ code = [f'MPI_Win_copy_attr_function *{ self .tmpname } = { ConvertFuncs .WIN_COPY_ATTR_FUNCTION } ({ self .name } );' ]
1763+ code .append ('ompi_abi_wrapper_helper_t *helper = NULL;' )
17631764 code .append ('MPI_Win_copy_attr_function_ABI_INTERNAL *copy_fn;' )
17641765 code .append ('helper = ( ompi_abi_wrapper_helper_t *)malloc(sizeof(ompi_abi_wrapper_helper_t));' )
17651766 code .append ('if (NULL == helper) return MPI_ERR_NO_MEM;' )
@@ -1813,17 +1814,17 @@ def type_text(self, enable_count=False):
18131814 type_name = self .mangle_name ('MPI_Win_delete_attr_function' )
18141815 return f'{ type_name } *'
18151816
1816- @property
1817- def argument (self ):
1818- return f'(MPI_Win_delete_attr_function *) { self .name } '
1817+ # @property
1818+ # def argument(self):
1819+ # return f'(MPI_Win_delete_attr_function *) {self.name}'
18191820
18201821#
18211822# note the code generated here relies on that generated for
18221823# WIN_COPY_ATTR_FUNCTION above
18231824#
18241825 @property
18251826 def init_code (self ):
1826- code = []
1827+ code = [f'MPI_Win_delete_attr_function * { self . tmpname } = { ConvertFuncs . WIN_DELETE_ATTR_FUNCTION } ( { self . name } );' ]
18271828 code .append ('MPI_Win_delete_attr_function_ABI_INTERNAL *delete_fn;' )
18281829 code .append (f'if ({ self .name } == MPI_WIN_NULL_DELETE_FN_ABI_INTERNAL)' + '{' )
18291830 code .append ('delete_fn = ABI_C_MPI_WIN_NULL_DELETE_FN;' )
You can’t perform that action at this time.
0 commit comments