@@ -1560,7 +1560,7 @@ cdef class ARTIORootMeshContainer:
15601560 nf = len (fields)
15611561 cdef np.float64_t[::cython.view.indirect, ::1 ] field_pointers
15621562 if nf > 0 : field_pointers = OnceIndirect(fields)
1563- cdef np.float64_t[:] field_vals = np.empty(nf , dtype = " float64" )
1563+ cdef np.float64_t[:, : ] field_vals = np.empty((nf, 1 ) , dtype = " float64" )
15641564 cdef np.ndarray[np.uint8_t, ndim= 1 , cast= True ] mask
15651565 mask = self .mask(selector, - 1 )
15661566 cdef np.ndarray[np.int64_t, ndim= 1 ] domain_ind
@@ -1583,7 +1583,7 @@ cdef class ARTIORootMeshContainer:
15831583 cdef np.int64_t offset
15841584 for i in range (positions.shape[0 ]):
15851585 for j in range (nf):
1586- field_vals[j] = field_pointers[j][i]
1586+ field_vals[j, 0 ] = field_pointers[j][i]
15871587 for j in range (3 ):
15881588 pos[j] = positions[i, j]
15891589 coords[j] = < int > ((pos[j] - self .DLE[j])/ self .dds[j])
@@ -1598,7 +1598,7 @@ cdef class ARTIORootMeshContainer:
15981598 offset, pos, field_vals, sfc)
15991599 if pdeposit.update_values == 1 :
16001600 for j in range (nf):
1601- field_pointers[j][i] = field_vals[j]
1601+ field_pointers[j][i] = field_vals[j, 0 ]
16021602
16031603cdef class SFCRangeSelector(SelectorObject):
16041604
0 commit comments