28 int ghosts = solver->
ghosts;
29 int ndims = solver->
ndims;
31 double *u = solver->
u;
37 double h, v, c, dxinv, local_cfl;
41 local_cfl = (
absolute(v)+c)*dt*dxinv;
42 if (local_cfl > max_cfl) max_cfl = local_cfl;
#define _ArraySetValue_(x, size, value)
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 _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
Contains function definitions for common mathematical functions.
double ShallowWater1DComputeCFL(void *s, void *m, double dt, double t)
Contains structure definition for hypar.
1D Shallow Water Equations
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
Structure containing all solver-specific variables and functions.
#define _ShallowWater1DGetFlowVar_(u, h, v)