140 class(
chkp_t),
intent(inout) :: this
143 associate(u=>this%u, v=>this%v, w=>this%w, &
144 ulag=>this%ulag, vlag=>this%vlag, wlag=>this%wlag, &
147 if (
associated(this%u) .and.
associated(this%v) .and. &
148 associated(this%w) .and.
associated(this%p))
then
155 if (
associated(this%ulag) .and.
associated(this%vlag) .and. &
156 associated(this%wlag))
then
184 if (
associated(this%s))
then
204 class(
chkp_t),
intent(inout) :: this
206 if (neko_bcknd_device .eq. 1)
then
207 associate(u=>this%u, v=>this%v, w=>this%w, &
208 ulag=>this%ulag, vlag=>this%vlag, wlag=>this%wlag,&
211 if (
associated(this%u) .and.
associated(this%v) .and. &
212 associated(this%w))
then
213 call device_memcpy(u%x, u%x_d, u%dof%size(), &
214 host_to_device, sync=.false.)
215 call device_memcpy(v%x, v%x_d, v%dof%size(), &
216 host_to_device, sync=.false.)
217 call device_memcpy(w%x, w%x_d, w%dof%size(), &
218 host_to_device, sync=.false.)
219 call device_memcpy(p%x, p%x_d, p%dof%size(), &
220 host_to_device, sync=.false.)
223 if (
associated(this%ulag) .and.
associated(this%vlag) .and. &
224 associated(this%wlag))
then
225 call device_memcpy(ulag%lf(1)%x, ulag%lf(1)%x_d, u%dof%size(), &
226 host_to_device, sync=.false.)
227 call device_memcpy(ulag%lf(2)%x, ulag%lf(2)%x_d, u%dof%size(), &
228 host_to_device, sync=.false.)
230 call device_memcpy(vlag%lf(1)%x, vlag%lf(1)%x_d, v%dof%size(), &
231 host_to_device, sync=.false.)
232 call device_memcpy(vlag%lf(2)%x, vlag%lf(2)%x_d, v%dof%size(), &
233 host_to_device, sync=.false.)
235 call device_memcpy(wlag%lf(1)%x, wlag%lf(1)%x_d, w%dof%size(), &
236 host_to_device, sync=.false.)
237 call device_memcpy(wlag%lf(2)%x, wlag%lf(2)%x_d, w%dof%size(), &
238 host_to_device, sync=.false.)
240 if (
associated(this%s))
then
241 call device_memcpy(this%s%x, this%s%x_d, this%s%dof%size(), &
242 host_to_device, sync=.false.)
244 call device_memcpy(this%slag%lf(1)%x, this%slag%lf(1)%x_d, &
245 this%s%dof%size(), host_to_device, sync=.false.)
246 call device_memcpy(this%slag%lf(2)%x, this%slag%lf(2)%x_d, &
247 this%s%dof%size(), host_to_device, sync=.false.)
248 call device_memcpy(this%abs1%x, this%abs1%x_d, &
249 w%dof%size(), host_to_device, sync=.false.)
250 call device_memcpy(this%abs2%x, this%abs2%x_d, &
251 w%dof%size(), host_to_device, sync=.false.)