Neko  0.9.0
A portable framework for high-order spectral element flow simulations
filter_kernels.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
__global__ void smooth_step_kernel (T *__restrict__ x, const T edge0, const T edge1, const int n)
 
template<typename T >
__global__ void step_kernel (T *__restrict__ x, const T edge, const T left, const T right, const int n)
 
template<typename T >
__global__ void permeability_kernel (T *__restrict__ x, const T k_0, const T k_1, const T q, const int n)
 

Function Documentation

◆ permeability_kernel()

template<typename T >
__global__ void permeability_kernel ( T *__restrict__  x,
const T  k_0,
const T  k_1,
const T  q,
const int  n 
)

Device kernel for the inverse permeability kernel.

Parameters
xinput array
k_0lower bound of the permeability
k_1upper bound of the permeability
qparameter
nsize of the input array

Definition at line 91 of file filter_kernels.h.

◆ smooth_step_kernel()

template<typename T >
__global__ void smooth_step_kernel ( T *__restrict__  x,
const T  edge0,
const T  edge1,
const int  n 
)

Device kernel for smooth step function.

Parameters
xin/out array
edge0lower edge
edge1upper edge
nsize of the input array

Definition at line 46 of file filter_kernels.h.

◆ step_kernel()

template<typename T >
__global__ void step_kernel ( T *__restrict__  x,
const T  edge,
const T  left,
const T  right,
const int  n 
)

Device kernel for step function.

Parameters
xinput array
edgestep location
leftvalue to the left of the step
rightvalue to the right of the step
nsize of the input array

Definition at line 69 of file filter_kernels.h.