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;
178 fc[k] = 0.5 * (fcL[k] + fcR[k] + alpha * (ucL[k]-ucR[k]));
Contains function definitions for common mathematical functions.
Some basic definitions and macros.
#define _ShallowWater2DRoeAverage_(uavg, uL, uR, p)
2D Shallow Water Equations
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 _ShallowWater2DLeftEigenvectors_(u, L, p, dir)
Contains structure definition for hypar.
#define MatVecMult3(N, y, A, x)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ShallowWater2DEigenvalues_(u, D, p, dir)
int ShallowWater2DUpwindRoe(double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
Contains macros and function definitions for common matrix multiplication.
#define MatMult3(N, A, X, Y)
int ShallowWater2DUpwindLLF(double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t)
#define _ShallowWater2DRightEigenvectors_(u, R, p, dir)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.