Neko 1.99.3
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
bc_shader_utils.h File Reference
#include <metal_stdlib>
Include dependency graph for bc_shader_utils.h:

Go to the source code of this file.

Functions

static void nonlinear_index (int idx, int lx, thread int *index)
 
static int coef_normal_area_idx (int i, int j, int k, int l, int lx, int nf)
 

Function Documentation

◆ coef_normal_area_idx()

static int coef_normal_area_idx ( int  i,
int  j,
int  k,
int  l,
int  lx,
int  nf 
)
inlinestatic

Compute linear index for area/normal arrays. Fortran-indexed input, C-indexed (0-based) output.

Definition at line 62 of file bc_shader_utils.h.

Here is the call graph for this function:

◆ nonlinear_index()

static void nonlinear_index ( int  idx,
int  lx,
thread int index 
)
inlinestatic

Decompose a linear Fortran (1-based) index into (i,j,k,e) indices.

Definition at line 44 of file bc_shader_utils.h.

Here is the call graph for this function: