Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
facet_normal_kernel.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define coef_normal_area_idx(i, j, k, l, lx, nf)    (((i) + (lx) * (((j) - 1) + (lx) * (((k) - 1) + (nf) * (((l) - 1))))) - 1)
 

Functions

__device__ void nonlinear_index (const int idx, const int lx, int *index)
 
template<typename T >
__global__ void facet_normal_apply_surfvec_kernel (const int *__restrict__ msk, const int *__restrict__ facet, T *__restrict__ x, T *__restrict__ y, T *__restrict__ z, const T *__restrict__ u, const T *__restrict__ v, const T *__restrict__ w, const T *__restrict__ nx, const T *__restrict__ ny, const T *__restrict__ nz, const T *__restrict__ area, const int lx, const int m)
 

Macro Definition Documentation

◆ coef_normal_area_idx

#define coef_normal_area_idx (   i,
  j,
  k,
  l,
  lx,
  nf 
)     (((i) + (lx) * (((j) - 1) + (lx) * (((k) - 1) + (nf) * (((l) - 1))))) - 1)

Computes the linear index for area and normal arrays

Note
Fortran indexing input, C indexing output

Definition at line 43 of file facet_normal_kernel.h.

Function Documentation

◆ facet_normal_apply_surfvec_kernel()

template<typename T >
__global__ void facet_normal_apply_surfvec_kernel ( const int *__restrict__  msk,
const int *__restrict__  facet,
T *__restrict__  x,
T *__restrict__  y,
T *__restrict__  z,
const T *__restrict__  u,
const T *__restrict__  v,
const T *__restrict__  w,
const T *__restrict__  nx,
const T *__restrict__  ny,
const T *__restrict__  nz,
const T *__restrict__  area,
const int  lx,
const int  m 
)

Device kernel for vector apply for a symmetry condition

Definition at line 69 of file facet_normal_kernel.h.

Here is the call graph for this function:

◆ nonlinear_index()

__device__ void nonlinear_index ( const int  idx,
const int  lx,
int index 
)

Device function to compute i,j,k,e indices from a linear index

Note
Assumes idx is a Fortran index

Definition at line 51 of file facet_normal_kernel.h.

Here is the call graph for this function:
Here is the caller graph for this function: