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];
70 source[_MODEL_NVARS_*p+v] += (SourceI[_MODEL_NVARS_*p2+v]-SourceI[_MODEL_NVARS_*p1+v])*dx_inverse;
93 source[_MODEL_NVARS_*p+v] += term[v]*(SourceI[_MODEL_NVARS_*p2+v]-SourceI[_MODEL_NVARS_*p1+v])*dx_inverse;
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;
#define _ArraySetValue_(x, size, value)
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.
#define _ArrayIncrementIndex_(N, imax, i, done)
static int ShallowWater1DSourceFunction2(double *, double *, double *, void *, void *, double)
MPI related function definitions.
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
int ShallowWater1DSource(double *, double *, void *, void *, double)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
static int ShallowWater1DSourceFunction1(double *, double *, double *, void *, void *, double)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArrayCopy1D_(x, y, size)
int(* InterpolateInterfacesHyp)(double *, double *, double *, double *, int, int, void *, void *, int)
Contains structure definition for hypar.
1D Shallow Water Equations
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
Structure of MPI-related variables.
int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double)
Structure containing all solver-specific variables and functions.
#define _ShallowWater1DGetFlowVar_(u, h, v)