@@ -86,7 +86,7 @@ class Buffer {
8686 const int kend = box[KDIR ][1 ];
8787 const int offset = this ->pointer ;
8888
89- auto arr = this ->array ;
89+ auto arr = this ->array . deviceView () ;
9090 idefix_for (" LoadBuffer4D_var" ,kbeg,kend,jbeg,jend,ibeg,iend,
9191 KOKKOS_LAMBDA (int k, int j, int i) {
9292 arr (i-ibeg + (j-jbeg)*ni + (k-kbeg)*ninj + offset ) = in (var, k,j,i);
@@ -109,7 +109,7 @@ class Buffer {
109109 const int jend = box[JDIR ][1 ];
110110 const int kend = box[KDIR ][1 ];
111111 const int offset = this ->pointer ;
112- auto arr = this ->array ;
112+ auto arr = this ->array . deviceView () ;
113113
114114 idefix_for (" LoadBuffer4D_map" ,0 ,map.size (),
115115 kbeg,kend,
@@ -135,7 +135,7 @@ class Buffer {
135135 const int jend = box[JDIR ][1 ];
136136 const int kend = box[KDIR ][1 ];
137137 const int offset = this ->pointer ;
138- auto arr = this ->array ;
138+ auto arr = this ->array . deviceView () ;
139139
140140 idefix_for (" UnLoadBuffer3D" ,kbeg,kend,jbeg,jend,ibeg,iend,
141141 KOKKOS_LAMBDA (int k, int j, int i) {
@@ -160,7 +160,7 @@ class Buffer {
160160 const int kend = box[KDIR ][1 ];
161161 const int offset = this ->pointer ;
162162
163- auto arr = this ->array ;
163+ auto arr = this ->array . deviceView () ;
164164 idefix_for (" UnLoadBuffer4D_var" ,kbeg,kend,jbeg,jend,ibeg,iend,
165165 KOKKOS_LAMBDA (int k, int j, int i) {
166166 out (var,k,j,i) = arr (i-ibeg + (j-jbeg)*ni + (k-kbeg)*ninj + offset );
@@ -185,7 +185,7 @@ class Buffer {
185185 const int kend = box[KDIR ][1 ];
186186 const int offset = this ->pointer ;
187187
188- auto arr = this ->array ;
188+ auto arr = this ->array . deviceView () ;
189189 idefix_for (" UnLoadBuffer4D_var_sym" ,kbeg,kend,jbeg,jend,ibeg,iend,
190190 KOKKOS_LAMBDA (int k, int j, int i) {
191191 const int jinverted = jend-(j-jbeg)-1 ;
@@ -211,7 +211,7 @@ class Buffer {
211211 const int kend = box[KDIR ][1 ];
212212 const int offset = this ->pointer ;
213213
214- auto arr = this ->array ;
214+ auto arr = this ->array . deviceView () ;
215215 idefix_for (" UnLoadBuffer4D_map" ,0 ,map.size (),
216216 kbeg,kend,
217217 jbeg,jend,
@@ -239,7 +239,7 @@ class Buffer {
239239 const int kend = box[KDIR ][1 ];
240240 const int offset = this ->pointer ;
241241
242- auto arr = this ->array ;
242+ auto arr = this ->array . deviceView () ;
243243 idefix_for (" UnLoadBuffer4D_map_sym" ,0 ,map.size (),
244244 kbeg,kend,
245245 jbeg,jend,
0 commit comments