__global__ void ale_add_kinematics_kernel(const int n, T *__restrict__ wx, T *__restrict__ wy, T *__restrict__ wz, const T *__restrict__ x_ref, const T *__restrict__ y_ref, const T *__restrict__ z_ref, const T *__restrict__ phi, const T *__restrict__ x, const T *__restrict__ y, const T *__restrict__ z, const kinematics_params_t kin_params)
__global__ void deardorff_nut_compute(T *__restrict__ TKE, const T *__restrict__ dTdx, const T *__restrict__ dTdy, const T *__restrict__ dTdz, const T *__restrict__ a11, const T *__restrict__ a12, const T *__restrict__ a13, const T *__restrict__ a21, const T *__restrict__ a22, const T *__restrict__ a23, const T *__restrict__ a31, const T *__restrict__ a32, const T *__restrict__ a33, const T *__restrict__ delta, T *__restrict__ nut, T *__restrict__ temperature_alphat, T *__restrict__ TKE_alphat, T *__restrict__ TKE_source, const T c_k, const T T0, const T g1, const T g2, const T g3, const T eps, const int n)