Skip to content

Commit b88c234

Browse files
committed
bug fix: use Python objects, instead of C
1 parent 352a0bb commit b88c234

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/pnetcdf/_utils.pyx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ _nptonctype = {'S1' : NC_CHAR_C,
4444
'f4' : NC_FLOAT_C,
4545
'f8' : NC_DOUBLE_C}
4646

47-
_nptompitype = {'S1' : MPI_CHAR,
48-
'i1' : MPI_BYTE,
49-
'u1' : MPI_UNSIGNED_CHAR,
50-
'i2' : MPI_SHORT,
51-
'u2' : MPI_UNSIGNED_SHORT,
52-
'i4' : MPI_INT,
53-
'u4' : MPI_UNSIGNED,
54-
'i8' : MPI_LONG_LONG,
55-
'u8' : MPI_UNSIGNED_LONG_LONG,
56-
'f4' : MPI_FLOAT,
57-
'f8' : MPI_DOUBLE}
47+
_nptompitype = {'S1' : MPI.CHAR,
48+
'i1' : MPI.BYTE,
49+
'u1' : MPI.UNSIGNED_CHAR,
50+
'i2' : MPI.SHORT,
51+
'u2' : MPI.UNSIGNED_SHORT,
52+
'i4' : MPI.INT,
53+
'u4' : MPI.UNSIGNED,
54+
'i8' : MPI.LONG_LONG,
55+
'u8' : MPI.UNSIGNED_LONG_LONG,
56+
'f4' : MPI.FLOAT,
57+
'f8' : MPI.DOUBLE}
5858

5959

6060
"""_nptompitype = {'S1' : MPI_CHAR,

0 commit comments

Comments
 (0)