37 int v, done, p, p1, p2;
38 double *SourceI = solver->
fluxI;
39 double *SourceC = solver->
fluxC;
40 double *SourceL = solver->
fL;
41 double *SourceR = solver->
fR;
43 int ndims = solver->
ndims;
44 int ghosts = solver->
ghosts;
46 double *x = solver->
x;
47 double *dxinv = solver->
dxinv;
48 int index[ndims],index1[ndims],index2[ndims],dim_interface[ndims];
123 int ghosts = solver->
ghosts;
125 int ndims = solver->
ndims;
126 int index[ndims], bounds[ndims], offset[ndims];
130 int i;
for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
167 int ghosts = solver->
ghosts;
169 int ndims = solver->
ndims;
170 int index[ndims], bounds[ndims], offset[ndims];
174 int i;
for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
Structure containing variables and parameters specific to the 1D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D ShallowWater equations.
static int ShallowWater1DSourceFunction2(double *, double *, double *, void *, void *, double)
1D Shallow Water Equations
MPI related function definitions.
Some basic definitions and macros.
int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double)
Structure containing all solver-specific variables and functions.
int ShallowWater1DSource(double *source, double *u, void *s, void *m, double t)
Contains structure definition for hypar.
int(* InterpolateInterfacesHyp)(double *, double *, double *, double *, int, int, void *, void *, int)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ShallowWater1DGetFlowVar_(u, h, v)
Structure of MPI-related variables.
static int ShallowWater1DSourceFunction1(double *, double *, double *, void *, void *, double)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.