35#ifndef __FLUID_ENTROPY_VISCOSITY_KERNEL_H__
36#define __FLUID_ENTROPY_VISCOSITY_KERNEL_H__
58 for (
int i = idx;
i < n;
i +=
str) {
59 entropy_residual[
i] = (
bdf1 *
S[
i]
73 const T c_avisc_entropy,
79 for (
int i = idx;
i < n;
i +=
str) {
80 reg_coeff[
i] = c_avisc_entropy * h[
i] * h[
i] * entropy_residual[
i] /
n_S;
97 if (el >= nelv)
return;
99 const int offset = el *
lx3;
109 for (
int s =
blockDim.x / 2; s > 0; s >>= 1) {
136 for (
int i = idx;
i < n;
i +=
str) {
153 for (
int i = idx;
i < n;
i +=
str) {
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dt
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
__global__ void entropy_visc_clamp_to_low_order_kernel(T *__restrict__ reg_coeff, const T *__restrict__ h, const T *__restrict__ max_wave_speed, const T c_avisc_low, const int n)
__global__ void entropy_visc_compute_viscosity_kernel(T *__restrict__ reg_coeff, const T *__restrict__ entropy_residual, const T *__restrict__ h, const T c_avisc_entropy, const T n_S, const int n)
__global__ void entropy_visc_compute_residual_kernel(T *__restrict__ entropy_residual, const T *__restrict__ S, const T *__restrict__ S_lag1, const T *__restrict__ S_lag2, const T *__restrict__ S_lag3, const T bdf1, const T bdf2, const T bdf3, const T bdf4, const T dt, const int n)
__global__ void entropy_visc_apply_element_max_kernel(T *__restrict__ reg_coeff, const int lx3, const int nelv)
__global__ void entropy_visc_smooth_divide_kernel(T *__restrict__ reg_coeff, const T *__restrict__ temp_field, const T *__restrict__ mult_field, const int n)