35#ifndef __BC_NEUMANN_KERNEL__
36#define __BC_NEUMANN_KERNEL__
45#define coef_normal_area_idx(i, j, k, l, lx, nf) \
46 (((i) + (lx) * (((j) - 1) + (lx) * (((k) - 1) + (nf) * (((l) - 1))))) - 1)
65 for (
int i = (idx + 1);
i < m;
i +=
str) {
66 const int k = (msk[
i] - 1);
67 const int f = (facet[
i]);
__inline__ __device__ void nonlinear_index(const int idx, const int lx, int *index)
__global__ void const T *__restrict__ x
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
__global__ void neumann_apply_scalar_kernel(const int *__restrict__ msk, const int *__restrict__ facet, T *__restrict__ x, const T *__restrict__ flux, const T *__restrict__ area, const int lx, const int m)
#define coef_normal_area_idx(i, j, k, l, lx, nf)