35 int ndims = solver->
ndims;
38 int index_outer[ndims], index_inter[ndims], bounds_outer[ndims], bounds_inter[ndims];
40 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
45 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
49 (fI+_MODEL_NVARS_*p)[k] = 0.5 * ((fL+_MODEL_NVARS_*p)[k] + (fR+_MODEL_NVARS_*p)[k]);
78 int ndims = solver->
ndims;
81 int index_outer[ndims], index_inter[ndims], bounds_outer[ndims], bounds_inter[ndims];
83 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
88 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
92 (fI+_MODEL_NVARS_*p)[k] = 0.5 * ((fL+_MODEL_NVARS_*p)[k] + (fR+_MODEL_NVARS_*p)[k]);
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
Contains function definitions for common mathematical functions.
int Euler1DSourceUpwindRoe(double *, double *, double *, double *, int, void *, double)
#define _ArrayCopy1D_(x, y, size)
int Euler1DSourceUpwindLLF(double *, double *, double *, double *, int, void *, double)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
1D Euler Equations (inviscid, compressible flows)
Structure containing all solver-specific variables and functions.