Skip to content

Commit 5127029

Browse files
committed
Add ELEMENT_COUNT for MPI_Get_elements_x
1 parent fc151a8 commit 5127029

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ompi/mpi/bindings/ompi_bindings/c_type.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ def parameter(self, enable_count=False):
126126
return f'const {count_type} {self.name}[]'
127127

128128

129+
@Type.add_type('ELEMENT_COUNT')
130+
class ElementCountType(Type):
131+
"""Special count type for MPI_Get_element_x"""
132+
133+
def type_text(self, enable_count=False):
134+
return 'MPI_Count *'
135+
136+
129137
@Type.add_type('PARTITIONED_COUNT')
130138
class TypePartitionedCount(Type):
131139
"""Count type for partitioned communication functions."""

0 commit comments

Comments
 (0)