Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
bc_utils.h File Reference

Go to the source code of this file.

Macros

#define coef_normal_area_idx(i, j, k, l, lx, nf)

Functions

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

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 42 of file bc_utils.h.

Function Documentation

◆ nonlinear_index()

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 49 of file bc_utils.h.