Skip to content

Commit ae7c854

Browse files
committed
info array tweak from dalcinl (ompi-info-array.patch)
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 513516b commit ae7c854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpi/bindings/ompi_bindings/c_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ class TypeInfoArray(StandardABIType):
15831583
def init_code(self):
15841584
code = [f'int size_{self.tmpname} = {self.count_param};']
15851585
code.append(f'MPI_Info *{self.tmpname} = (MPI_Info *)ompi_abi_malloc(size_{self.tmpname}, sizeof(MPI_Info));')
1586-
code.append(f'if ((NULL != {self.tmpname}) && (NULL != {self.name}) && (MPI_INFO_NULL_ABI_INTERNAL != {self.name})){{')
1586+
code.append(f'if ((NULL != {self.tmpname}) && (NULL != {self.name})){{')
15871587
code.append(f'for(int i=0;i<size_{self.tmpname};i++){{')
15881588
code.append(f'{self.tmpname}[i] = {ConvertFuncs.INFO}({self.name}[i]);')
15891589
code.append('}')

0 commit comments

Comments
 (0)