28 int ghosts = solver->
ghosts;
29 int ndims = solver->
ndims;
31 double *u = solver->
u;
37 double h, uvel, vvel, c, dxinv, dyinv, local_cfl[
_MODEL_NDIMS_];
45 if (local_cfl[_XDIR_] > max_cfl) max_cfl = local_cfl[
_XDIR_];
46 if (local_cfl[_YDIR_] > max_cfl) max_cfl = local_cfl[
_YDIR_];
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
2D Shallow Water Equations
Contains function definitions for common mathematical functions.
double ShallowWater2DComputeCFL(void *s, void *m, double dt, double t)
#define _ShallowWater2DGetFlowVar_(u, h, uvel, vvel)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
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.