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]) );
Contains function definitions for common mathematical functions.
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.
#define _ShallowWater2DLeftEigenvectors_(u, L, p, dir)
#define _ShallowWater2DEigenvalues_(u, D, p, dir)
int ShallowWater2DJacobian(double *Jac, double *u, void *p, int dir, int nvars, int upw)
Contains macros and function definitions for common matrix multiplication.
#define MatMult3(N, A, X, Y)
#define _ShallowWater2DRightEigenvectors_(u, R, p, dir)