Updating the solution array on fly

Hi,

I want to update my solution array scal_upt while running. My scal_upts in copied to host to do some operations, and then I want to send it back to device to replace the array scal_upt on the device end. Is there any existing way to do that? Or I need to treat this updated array as an external array and update scal_upts pointwisely?

Regards,
Zhenyang

You should just need to call the .set() method on the array which is marked as containing the current solution (self._idxcurr).

Regards, Freddie.