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]--;
134 int ndims = solver->
ndims;
136 int ghosts = solver->
ghosts;
138 int index_outer[ndims], index_inter[ndims], bounds_outer[ndims], bounds_inter[ndims];
139 _ArrayCopy1D_(dim,bounds_outer,ndims); bounds_outer[dir] = 1;
140 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
146 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
148 int indexL[ndims];
_ArrayCopy1D_(index_inter,indexL,ndims); indexL[dir]--;
169 double eigL,eigC,eigR;
171 eigL = D[k*_MODEL_NVARS_+k];
173 eigR = D[k*_MODEL_NVARS_+k];
175 eigC = D[k*_MODEL_NVARS_+k];
178 fc[k] = 0.5 * (fcL[k] + fcR[k] + alpha * (ucL[k]-ucR[k]));
182 MatVecMult3(_MODEL_NVARS_,(fI+_MODEL_NVARS_*p),R,fc);
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define MatMult3(N, A, X, Y)
#define _ShallowWater2DLeftEigenvectors_(u, L, p, dir)
#define _ShallowWater2DEigenvalues_(u, D, p, dir)
int ShallowWater2DUpwindRoe(double *, double *, double *, double *, double *, double *, int, void *, double)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ShallowWater2DRightEigenvectors_(u, R, p, dir)
int ShallowWater2DUpwindLLF(double *, double *, double *, double *, double *, double *, int, void *, double)
2D Shallow Water Equations
Contains function definitions for common mathematical functions.
#define _ArrayCopy1D_(x, y, size)
#define _ShallowWater2DRoeAverage_(uavg, uL, uR, p)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
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.
#define MatVecMult3(N, y, A, x)
Contains macros and function definitions for common matrix multiplication.