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]++) {
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]++) {
Contains function definitions for common mathematical functions.
Some basic definitions and macros.
2D Shallow Water Equations
Structure containing all solver-specific variables and functions.
int ShallowWater2DSourceUpwindRoe(double *fI, double *fL, double *fR, double *u, int dir, void *s, double t)
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
int ShallowWater2DSourceUpwindLLF(double *fI, double *fL, double *fR, double *u, int dir, void *s, double t)