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;
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.
1D Shallow Water Equations
Contains function definitions for common mathematical functions.
Some basic definitions and macros.
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 ShallowWater1DComputeCFL(void *s, void *m, double dt, double t)
#define _ShallowWater1DGetFlowVar_(u, h, v)
Contains macros and function definitions for common array operations.