35 #ifndef __BC_NO_SLIP_WALL_KERNEL__
36 #define __BC_NO_SLIP_WALL_KERNEL__
41 template<
typename T >
46 const int idx = blockIdx.x * blockDim.x + threadIdx.x;
47 const int str = blockDim.x * gridDim.x;
49 for (
int i = (idx + 1);
i < m;
i += str) {
50 const int k = (msk[
i] - 1);
58 template<
typename T >
65 const int idx = blockIdx.x * blockDim.x + threadIdx.x;
66 const int str = blockDim.x * gridDim.x;
68 for (
int i = (idx + 1);
i < m;
i += str) {
69 const int k = (msk[
i] - 1);
__global__ void const T *__restrict__ x
__global__ void no_slip_wall_apply_vector_kernel(const int *__restrict__ msk, T *__restrict__ x, T *__restrict__ y, T *__restrict__ z, const int m)
__global__ void no_slip_wall_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const int m)