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)
2D Shallow Water Equations
Contains function definitions for common mathematical functions.
#define _ArrayCopy1D_(x, y, size)
Contains structure definition for hypar.
Some basic definitions and macros.
int ShallowWater2DSourceUpwindLLF(double *, double *, double *, double *, int, void *, double)
Contains macros and function definitions for common array operations.
int ShallowWater2DSourceUpwindRoe(double *, double *, double *, double *, int, void *, double)
Structure containing all solver-specific variables and functions.