Skip to content

Commit 967a36c

Browse files
committed
fix for datatype converters
Signed-off-by: Howard Pritchard <[email protected]>
1 parent dedcf72 commit 967a36c

File tree

1 file changed

+1
-3
lines changed
  • ompi/mpi/bindings/ompi_bindings

1 file changed

+1
-3
lines changed

ompi/mpi/bindings/ompi_bindings/c.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,9 @@ def generate_new_datatype_convert_fn_intern_to_abi(self):
296296
for i,value_name in enumerate(consts.PREDEFINED_OPTIONAL_FORTRAN_DATATYPES):
297297
intern_name = self.mangle_name(value_name)
298298
base_type = value_name[4:]
299-
lines.append('} else if (%s == datatype) {' % (value_name))
300299
lines.append(f'#if OMPI_HAVE_FORTRAN_{base_type}')
300+
lines.append('} else if (%s == datatype) {' % (value_name))
301301
lines.append(f'return {intern_name};')
302-
lines.append('#else')
303-
lines.append(f'return {mangle_null_name};')
304302
lines.append('#endif')
305303
lines.append('#endif /* OMPI_BUILD_FORTRAN_BINDINGS */')
306304
lines.append('}')

0 commit comments

Comments
 (0)