Implementing the shared version of sorflow_nonlinear_warp_sor_shared function