Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
neumann_kernel.h File Reference
#include "bc_utils.h"
Include dependency graph for neumann_kernel.h:
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)

Functions

template<typename T>
__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)
template<typename T>
__global__ void neumann_apply_vector_kernel (const int *__restrict__ msk, const int *__restrict__ facet, T *__restrict__ x, T *__restrict__ y, T *__restrict__ z, const T *__restrict__ flux_x, const T *__restrict__ flux_y, const T *__restrict__ flux_z, 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 )
Value:
(((i) + (lx) * (((j) - 1) + (lx) * (((k) - 1) + (nf) * (((l) - 1))))) - 1)
const int i
const int j

Computes the linear index for area and normal arrays

Note
Fortran indexing input, C indexing output

Definition at line 45 of file neumann_kernel.h.

Function Documentation

◆ neumann_apply_scalar_kernel()

template<typename T>
__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 )

Device kernel for neumann scalar boundary condition

Definition at line 54 of file neumann_kernel.h.

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

◆ neumann_apply_vector_kernel()

template<typename T>
__global__ void neumann_apply_vector_kernel ( const int *__restrict__ msk,
const int *__restrict__ facet,
T *__restrict__ x,
T *__restrict__ y,
T *__restrict__ z,
const T *__restrict__ flux_x,
const T *__restrict__ flux_y,
const T *__restrict__ flux_z,
const T *__restrict__ area,
const int lx,
const int m )

Device kernel for neumann vector boundary condition

Definition at line 104 of file neumann_kernel.h.

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