35 k = 0; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) );
36 k = 3; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[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.
#define MatMult2(N, A, X, Y)
#define _ShallowWater1DLeftEigenvectors_(u, L, p, dir)
Contains function definitions for common mathematical functions.
#define _ShallowWater1DEigenvalues_(u, D, p, dir)
#define _ShallowWater1DRightEigenvectors_(u, R, p, dir)
int ShallowWater1DJacobian(double *, double *, void *, int, int, int)
1D Shallow Water Equations
Contains macros and function definitions for common matrix multiplication.