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_];
Contains function definitions for common mathematical functions.
Some basic definitions and macros.
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.
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
double ShallowWater2DComputeCFL(void *s, void *m, double dt, double t)
Contains macros and function definitions for common array operations.
#define _ShallowWater2DGetFlowVar_(u, h, uvel, vvel)