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]++) {
48 (fI+_MODEL_NVARS_*p)[k] = 0.5 * ((fL+_MODEL_NVARS_*p)[k] + (fR+_MODEL_NVARS_*p)[k]);
77 int ndims = solver->
ndims;
80 int index_outer[ndims], index_inter[ndims], bounds_outer[ndims], bounds_inter[ndims];
82 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
87 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
90 (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.
#define _ArrayCopy1D_(x, y, size)
Contains structure definition for hypar.
int ShallowWater1DSourceUpwindLLF(double *, double *, double *, double *, int, void *, double)
1D Shallow Water Equations
int ShallowWater1DSourceUpwindRoe(double *, double *, double *, double *, int, void *, double)
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
Structure containing all solver-specific variables and functions.