Skip to content

Commit

Permalink
Fix incorrect parameter functions
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Tronge <[email protected]>
  • Loading branch information
jtronge committed Jul 26, 2024
1 parent 1c2c6e3 commit 05b3f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ompi/mpi/bindings/ompi_bindings/c_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def is_count(self):
def type_text(self, enable_count=False):
return 'MPI_Count *' if enable_count else 'int *'

def parameter(self, enable_count=False):
def parameter(self, enable_count=False, **kwargs):
count_type = 'MPI_Count' if enable_count else 'int'
return f'const {count_type} {self.name}[]'

Expand Down Expand Up @@ -152,7 +152,7 @@ def is_count(self):
def type_text(self, enable_count=False):
return 'MPI_Aint *' if enable_count else 'int *'

def parameter(self, enable_count=False):
def parameter(self, enable_count=False, **kwargs):
count_type = 'MPI_Aint' if enable_count else 'int'
return f'const {count_type} {self.name}[]'

Expand Down Expand Up @@ -262,7 +262,7 @@ class TypeDatatypeArray(Type):
def type_text(self, enable_count=False):
return 'MPI_Datatype'

def parameter(self, enable_count=False):
def parameter(self, enable_count=False, **kwargs):
return f'const {self.type_text(enable_count=enable_count)} {self.name}[]'


Expand Down

0 comments on commit 05b3f7d

Please sign in to comment.