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 = 4; 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]) );
37 k = 8; 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]) );
#define MatMult3(N, A, X, Y)
#define _ShallowWater2DLeftEigenvectors_(u, L, p, dir)
#define _ShallowWater2DEigenvalues_(u, D, p, dir)
#define _ShallowWater2DRightEigenvectors_(u, R, p, dir)
2D Shallow Water Equations
Contains function definitions for common mathematical functions.
int ShallowWater2DJacobian(double *, double *, void *, int, int, int)
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.
Contains macros and function definitions for common matrix multiplication.