@@ -28,7 +28,6 @@ cimport numpy
28
28
numpy.import_array()
29
29
30
30
31
- ctypedef MPI.Datatype Datatype
32
31
33
32
34
33
cdef class Variable:
@@ -699,7 +698,7 @@ cdef class Variable:
699
698
self ._put(dataput,a,b,c)
700
699
701
700
702
- def _put_var1 (self , value , tuple index , bufcount , Datatype buftype , collective = True ):
701
+ def _put_var1 (self , value , tuple index , bufcount , MPI. Datatype buftype , collective = True ):
703
702
cdef int ierr, ndims
704
703
cdef size_t * indexp
705
704
cdef MPI_Offset buffcount
@@ -735,7 +734,7 @@ cdef class Variable:
735
734
_check_err(ierr)
736
735
free(indexp)
737
736
738
- def _put_var (self , ndarray data , bufcount , Datatype buftype , collective = True ):
737
+ def _put_var (self , ndarray data , bufcount , MPI. Datatype buftype , collective = True ):
739
738
cdef int ierr, ndims
740
739
cdef MPI_Offset buffcount
741
740
cdef MPI_Datatype bufftype
@@ -765,7 +764,7 @@ cdef class Variable:
765
764
PyArray_DATA(data), buffcount, bufftype)
766
765
_check_err(ierr)
767
766
768
- def _put_vara (self , start , count , ndarray data , bufcount , Datatype buftype , collective = True ):
767
+ def _put_vara (self , start , count , ndarray data , bufcount , MPI. Datatype buftype , collective = True ):
769
768
cdef int ierr, ndims
770
769
cdef MPI_Offset buffcount
771
770
cdef MPI_Datatype bufftype
@@ -802,7 +801,7 @@ cdef class Variable:
802
801
PyArray_DATA(data), buffcount, bufftype)
803
802
_check_err(ierr)
804
803
805
- def _put_varn (self , ndarray data , num , starts , counts = None , bufcount = None , buftype = None , collective = True ):
804
+ def _put_varn (self , ndarray data , num , starts , counts = None , bufcount = None , MPI.Datatype buftype = None , collective = True ):
806
805
cdef int ierr, ndims
807
806
cdef MPI_Offset buffcount
808
807
cdef MPI_Datatype bufftype
@@ -862,7 +861,7 @@ cdef class Variable:
862
861
bufftype)
863
862
_check_err(ierr)
864
863
865
- def put_varn_all (self , data , num , starts , counts = None , bufcount = None , buftype = None ):
864
+ def put_varn_all (self , data , num , starts , counts = None , bufcount = None , MPI.Datatype buftype = None ):
866
865
"""
867
866
put_varn_all(self, data, num, starts, counts=None, bufcount=None, buftype=None)
868
867
@@ -967,7 +966,7 @@ cdef class Variable:
967
966
self ._put_varn(data, num, starts, counts, bufcount = bufcount,
968
967
buftype = buftype, collective = True )
969
968
970
- def put_varn (self , data , num , starts , counts = None , bufcount = None , buftype = None ):
969
+ def put_varn (self , data , num , starts , counts = None , bufcount = None , MPI.Datatype buftype = None ):
971
970
"""
972
971
put_varn(self, data, num, starts, counts=None, bufcount=None, buftype=None)
973
972
@@ -979,7 +978,7 @@ cdef class Variable:
979
978
self ._put_varn(data, num, starts, counts, bufcount = bufcount,
980
979
buftype = buftype, collective = False )
981
980
982
- def iput_varn (self , data , num , starts , counts = None , bufcount = None , buftype = None ):
981
+ def iput_varn (self , data , num , starts , counts = None , bufcount = None , MPI.Datatype buftype = None ):
983
982
"""
984
983
iput_varn(self, data, num, starts, counts=None, bufcount=None, buftype=None)
985
984
@@ -1008,7 +1007,7 @@ cdef class Variable:
1008
1007
return self ._iput_varn(data, num, starts, counts, bufcount, buftype,
1009
1008
buffered = False )
1010
1009
1011
- def bput_varn (self , data , num , starts , counts = None , bufcount = None , buftype = None ):
1010
+ def bput_varn (self , data , num , starts , counts = None , bufcount = None , MPI.Datatype buftype = None ):
1012
1011
"""
1013
1012
bput_varn(self, data, num, starts, counts=None, bufcount=None, buftype=None)
1014
1013
@@ -1035,7 +1034,7 @@ cdef class Variable:
1035
1034
"""
1036
1035
return self ._iput_varn(data, num, starts, counts, bufcount, buftype, buffered = True )
1037
1036
1038
- def _put_vars (self , start , count , stride , ndarray data , bufcount , Datatype buftype , collective = True ):
1037
+ def _put_vars (self , start , count , stride , ndarray data , bufcount , MPI. Datatype buftype , collective = True ):
1039
1038
cdef int ierr, ndims
1040
1039
cdef MPI_Offset buffcount
1041
1040
cdef MPI_Datatype bufftype
@@ -1078,7 +1077,7 @@ cdef class Variable:
1078
1077
_check_err(ierr)
1079
1078
1080
1079
1081
- def _put_varm (self , ndarray data , start , count , stride , imap , bufcount , Datatype buftype , collective = True ):
1080
+ def _put_varm (self , ndarray data , start , count , stride , imap , bufcount , MPI. Datatype buftype , collective = True ):
1082
1081
cdef int ierr, ndims
1083
1082
cdef MPI_Offset buffcount
1084
1083
cdef MPI_Datatype bufftype
@@ -1131,7 +1130,7 @@ cdef class Variable:
1131
1130
1132
1131
1133
1132
1134
- def put_var_all (self , data , start = None , count = None , stride = None , imap = None , bufcount = None , buftype = None ):
1133
+ def put_var_all (self , data , start = None , count = None , stride = None , imap = None , bufcount = None , MPI.Datatype buftype = None ):
1135
1134
"""
1136
1135
put_var_all(self, data, start=None, count=None, stride=None, imap=None, bufcount=None, buftype=None)
1137
1136
@@ -1423,7 +1422,7 @@ cdef class Variable:
1423
1422
free(countp)
1424
1423
free(stridep)
1425
1424
1426
- def _get_var1 (self , ndarray buff , index , bufcount , Datatype buftype , collective = True ):
1425
+ def _get_var1 (self , ndarray buff , index , bufcount , MPI. Datatype buftype , collective = True ):
1427
1426
cdef int ierr, ndims
1428
1427
cdef size_t * indexp
1429
1428
cdef MPI_Offset buffcount
@@ -1453,7 +1452,7 @@ cdef class Variable:
1453
1452
free(indexp)
1454
1453
1455
1454
1456
- def _get_var (self , ndarray buff , bufcount , Datatype buftype , collective = True ):
1455
+ def _get_var (self , ndarray buff , bufcount , MPI. Datatype buftype , collective = True ):
1457
1456
cdef int ierr, ndims
1458
1457
cdef MPI_Offset buffcount
1459
1458
cdef MPI_Datatype bufftype
@@ -1479,7 +1478,7 @@ cdef class Variable:
1479
1478
_check_err(ierr)
1480
1479
1481
1480
1482
- def _get_vara (self , ndarray buff , start , count , bufcount , Datatype buftype , collective = True ):
1481
+ def _get_vara (self , ndarray buff , start , count , bufcount , MPI. Datatype buftype , collective = True ):
1483
1482
cdef int ierr, ndims
1484
1483
cdef MPI_Offset buffcount
1485
1484
cdef MPI_Datatype bufftype
@@ -1513,7 +1512,7 @@ cdef class Variable:
1513
1512
1514
1513
_check_err(ierr)
1515
1514
1516
- def _get_varn (self , ndarray data , num , starts , counts , bufcount , Datatype buftype , collective = True ):
1515
+ def _get_varn (self , ndarray data , num , starts , counts , bufcount , MPI. Datatype buftype , collective = True ):
1517
1516
cdef int ierr, ndims
1518
1517
cdef MPI_Offset buffcount
1519
1518
cdef MPI_Datatype bufftype
@@ -1569,7 +1568,7 @@ cdef class Variable:
1569
1568
1570
1569
_check_err(ierr)
1571
1570
1572
- def _get_vars (self , ndarray buff , start , count , stride , bufcount , Datatype buftype , collective = True ):
1571
+ def _get_vars (self , ndarray buff , start , count , stride , bufcount , MPI. Datatype buftype , collective = True ):
1573
1572
cdef int ierr, ndims
1574
1573
cdef MPI_Offset buffcount
1575
1574
cdef MPI_Datatype bufftype
@@ -1606,7 +1605,7 @@ cdef class Variable:
1606
1605
1607
1606
_check_err(ierr)
1608
1607
1609
- def _get_varm (self , ndarray buff , start , count , stride , imap , bufcount , Datatype buftype , collective = True ):
1608
+ def _get_varm (self , ndarray buff , start , count , stride , imap , bufcount , MPI. Datatype buftype , collective = True ):
1610
1609
cdef int ierr, ndims
1611
1610
cdef MPI_Offset buffcount
1612
1611
cdef MPI_Datatype bufftype
@@ -2058,7 +2057,7 @@ cdef class Variable:
2058
2057
else :
2059
2058
return data
2060
2059
2061
- def _iput_var (self , ndarray data , bufcount , Datatype buftype , buffered = False ):
2060
+ def _iput_var (self , ndarray data , bufcount , MPI. Datatype buftype , buffered = False ):
2062
2061
cdef int ierr, ndims
2063
2062
cdef MPI_Offset buffcount
2064
2063
cdef MPI_Datatype bufftype
@@ -2090,7 +2089,7 @@ cdef class Variable:
2090
2089
_check_err(ierr)
2091
2090
return request
2092
2091
2093
- def _iput_var1 (self , value , index , bufcount , Datatype buftype , buffered = False ):
2092
+ def _iput_var1 (self , value , index , bufcount , MPI. Datatype buftype , buffered = False ):
2094
2093
cdef int ierr, ndims
2095
2094
cdef size_t * indexp
2096
2095
cdef MPI_Offset buffcount
@@ -2127,7 +2126,7 @@ cdef class Variable:
2127
2126
_check_err(ierr)
2128
2127
return request
2129
2128
2130
- def _iput_vara (self , start , count , ndarray data , bufcount , Datatype buftype , buffered = False ):
2129
+ def _iput_vara (self , start , count , ndarray data , bufcount , MPI. Datatype buftype , buffered = False ):
2131
2130
cdef int ierr, ndims
2132
2131
cdef MPI_Offset buffcount
2133
2132
cdef MPI_Datatype bufftype
@@ -2166,7 +2165,7 @@ cdef class Variable:
2166
2165
_check_err(ierr)
2167
2166
return request
2168
2167
2169
- def _iput_vars (self , start , count , stride , ndarray data , bufcount , Datatype buftype , buffered = False ):
2168
+ def _iput_vars (self , start , count , stride , ndarray data , bufcount , MPI. Datatype buftype , buffered = False ):
2170
2169
cdef int ierr, ndims
2171
2170
cdef MPI_Offset buffcount
2172
2171
cdef MPI_Datatype bufftype
@@ -2206,7 +2205,7 @@ cdef class Variable:
2206
2205
_check_err(ierr)
2207
2206
return request
2208
2207
2209
- def _iput_varn (self , ndarray data , num , starts , counts , bufcount , Datatype buftype , buffered = False ):
2208
+ def _iput_varn (self , ndarray data , num , starts , counts , bufcount , MPI. Datatype buftype , buffered = False ):
2210
2209
cdef int ierr, ndims
2211
2210
cdef MPI_Offset buffcount
2212
2211
cdef MPI_Datatype bufftype
@@ -2270,7 +2269,7 @@ cdef class Variable:
2270
2269
_check_err(ierr)
2271
2270
return request
2272
2271
2273
- def _iput_varm (self , ndarray data , start , count , stride , imap , bufcount , Datatype buftype , buffered = False ):
2272
+ def _iput_varm (self , ndarray data , start , count , stride , imap , bufcount , MPI. Datatype buftype , buffered = False ):
2274
2273
cdef int ierr, ndims
2275
2274
cdef MPI_Offset buffcount
2276
2275
cdef MPI_Datatype bufftype
@@ -2405,7 +2404,7 @@ cdef class Variable:
2405
2404
else :
2406
2405
raise ValueError (" Invalid input arguments for iput_var" )
2407
2406
2408
- def _iget_var (self , ndarray data , bufcount , Datatype buftype ):
2407
+ def _iget_var (self , ndarray data , bufcount , MPI. Datatype buftype ):
2409
2408
cdef int ierr, ndims
2410
2409
cdef MPI_Offset buffcount
2411
2410
cdef MPI_Datatype bufftype
@@ -2425,7 +2424,7 @@ cdef class Variable:
2425
2424
return request
2426
2425
2427
2426
2428
- def _iget_var1 (self , ndarray buff , index , bufcount , Datatype buftype ):
2427
+ def _iget_var1 (self , ndarray buff , index , bufcount , MPI. Datatype buftype ):
2429
2428
cdef int ierr, ndims
2430
2429
cdef size_t * indexp
2431
2430
cdef MPI_Offset buffcount
@@ -2452,7 +2451,7 @@ cdef class Variable:
2452
2451
return request
2453
2452
2454
2453
2455
- def _iget_vara (self , ndarray data , start , count , bufcount , Datatype buftype ):
2454
+ def _iget_vara (self , ndarray data , start , count , bufcount , MPI. Datatype buftype ):
2456
2455
cdef int ierr, ndims
2457
2456
cdef MPI_Offset buffcount
2458
2457
cdef MPI_Datatype bufftype
@@ -2481,7 +2480,7 @@ cdef class Variable:
2481
2480
_check_err(ierr)
2482
2481
return request
2483
2482
2484
- def _iget_vars (self , ndarray buff , start , count , stride , bufcount , Datatype buftype ):
2483
+ def _iget_vars (self , ndarray buff , start , count , stride , bufcount , MPI. Datatype buftype ):
2485
2484
cdef int ierr, ndims
2486
2485
cdef MPI_Offset buffcount
2487
2486
cdef MPI_Datatype bufftype
@@ -2513,7 +2512,7 @@ cdef class Variable:
2513
2512
_check_err(ierr)
2514
2513
return request
2515
2514
2516
- def iget_varn (self , ndarray data , num , starts , counts = None , bufcount = None , Datatype buftype = None ):
2515
+ def iget_varn (self , ndarray data , num , starts , counts = None , bufcount = None , MPI. Datatype buftype = None ):
2517
2516
"""
2518
2517
iget_varn(self, data, num, starts, counts=None, bufcount=None, buftype=None)
2519
2518
@@ -2585,7 +2584,7 @@ cdef class Variable:
2585
2584
_check_err(ierr)
2586
2585
return request
2587
2586
2588
- def _iget_varm (self , ndarray buff , start , count , stride , imap , bufcount , Datatype buftype ):
2587
+ def _iget_varm (self , ndarray buff , start , count , stride , imap , bufcount , MPI. Datatype buftype ):
2589
2588
cdef int ierr, ndims
2590
2589
cdef MPI_Offset buffcount
2591
2590
cdef MPI_Datatype bufftype
0 commit comments