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;
167 eigL = D[k*_MODEL_NVARS_+k];
169 eigR = D[k*_MODEL_NVARS_+k];
171 eigC = D[k*_MODEL_NVARS_+k];
174 fc[k] = 0.5 * (fcL[k] + fcR[k] + alpha * (ucL[k]-ucR[k]));
178 MatVecMult2(_MODEL_NVARS_,(fI+_MODEL_NVARS_*p),R,fc);
int ShallowWater1DUpwindRoe(double *, double *, double *, double *, double *, double *, int, void *, double)
#define _ArraySetValue_(x, size, value)
#define _ShallowWater1DRoeAverage_(uavg, uL, uR, p)
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)
#define MatMult2(N, A, X, Y)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ShallowWater1DLeftEigenvectors_(u, L, p, dir)
int ShallowWater1DUpwindLLF(double *, double *, double *, double *, double *, double *, int, void *, double)
Contains function definitions for common mathematical functions.
#define _ShallowWater1DEigenvalues_(u, D, p, dir)
#define _ShallowWater1DRightEigenvectors_(u, R, p, dir)
#define _ArrayCopy1D_(x, y, size)
Contains structure definition for hypar.
1D Shallow Water Equations
Some basic definitions and macros.
#define MatVecMult2(N, y, A, x)
Contains macros and function definitions for common array operations.
Structure containing all solver-specific variables and functions.
Contains macros and function definitions for common matrix multiplication.