35 if (param->
grav == 0.0)
return(0);
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];
101 int ghosts = solver->
ghosts;
103 int ndims = solver->
ndims;
104 int index[ndims], bounds[ndims], offset[ndims];
108 int i;
for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
MPI related function definitions.
Structure containing variables and parameters specific to the 1D Euler equations. This structure cont...
int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double)
int Euler1DSource(double *source, double *u, void *s, void *m, double t)
Some basic definitions and macros.
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)
1D Euler Equations (inviscid, compressible flows)
Structure of MPI-related variables.
#define _Euler1DGetFlowVar_(u, rho, v, e, P, p)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
static int Euler1DSourceFunction(double *, double *, double *, void *, void *, double)