45 int v, done, p, p1, p2;
46 double *SourceI = solver->
fluxI;
47 double *SourceC = solver->
fluxC;
48 double *SourceL = solver->
fL;
49 double *SourceR = solver->
fR;
51 int ndims = solver->
ndims;
52 int ghosts = solver->
ghosts;
54 double *x = solver->
x;
55 double *dxinv = solver->
dxinv;
56 int index[ndims],index1[ndims],index2[ndims],dim_interface[ndims];
100 double term[
_MODEL_NVARS_] = { 0.0, -param->
g * (h + param->
b[p]), 0.0 };
149 double term[
_MODEL_NVARS_] = { 0.0, 0.0, -param->
g * (h + param->
b[p]) };
160 double h, uvel, vvel;
163 double coeff = param->
fhat + param->
beta * (ycoord - 0.5*param->
D);
164 double coriolis_x = coeff * vvel,
165 coriolis_y = -coeff * uvel;
207 int ghosts = solver->
ghosts;
209 int ndims = solver->
ndims;
210 int index[ndims], bounds[ndims], offset[ndims];
214 int i;
for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
264 int ghosts = solver->
ghosts;
266 int ndims = solver->
ndims;
267 int index[ndims], bounds[ndims], offset[ndims];
271 int i;
for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
MPI related function definitions.
int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double)
int ShallowWater2DSource(double *source, double *u, void *s, void *m, double t)
Some basic definitions and macros.
static int ShallowWater2DSourceFunction2(double *, double *, double *, void *, void *, double, int)
2D Shallow Water Equations
static int ShallowWater2DSourceFunction1(double *, double *, double *, void *, void *, double, int)
Structure containing variables and parameters specific to the 2D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D ShallowWater equations.
Structure containing all solver-specific variables and functions.
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)
Structure of MPI-related variables.
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
#define _ShallowWater2DGetFlowVar_(u, h, uvel, vvel)