47 int ndims = solver->
ndims;
48 int ghosts= solver->
ghosts;
51 int index_outer[ndims], index_inter[ndims], bounds_outer[ndims], bounds_inter[ndims];
53 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
60 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
62 int indexL[ndims];
_ArrayCopy1D_(index_inter,indexL,ndims); indexL[dir]--;
130 int ndims = solver->
ndims;
132 int ghosts = solver->
ghosts;
134 int index_outer[ndims], index_inter[ndims], bounds_outer[ndims], bounds_inter[ndims];
135 _ArrayCopy1D_(dim,bounds_outer,ndims); bounds_outer[dir] = 1;
136 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
142 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
144 int indexL[ndims];
_ArrayCopy1D_(index_inter,indexL,ndims); indexL[dir]--;
165 double eigL,eigC,eigR;
174 fc[k] = 0.5 * (fcL[k] + fcR[k] + alpha * (ucL[k]-ucR[k]));
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.
1D Shallow Water Equations
Contains function definitions for common mathematical functions.
#define _ShallowWater1DRightEigenvectors_(u, R, p, dir)
Some basic definitions and macros.
#define MatVecMult2(N, y, A, x)
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ShallowWater1DRoeAverage_(uavg, uL, uR, p)
#define _ShallowWater1DEigenvalues_(u, D, p, dir)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArraySetValue_(x, size, value)
#define MatMult2(N, A, X, Y)
#define _ArrayIncrementIndex_(N, imax, i, done)
int ShallowWater1DUpwindLLF(double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t)
Contains macros and function definitions for common matrix multiplication.
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
#define _ShallowWater1DLeftEigenvectors_(u, L, p, dir)
int ShallowWater1DUpwindRoe(double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t)