29 int ghosts = solver->
ghosts;
30 int ndims = solver->
ndims;
31 int nvars = solver->
nvars;
32 int index[ndims], bounds[ndims], offset[ndims];
36 for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
44 for (v = 0; v < nvars; v++) f[nvars*p+v] = 0.5 * u[nvars*p+v] * u[nvars*p+v];
Some basic definitions and macros.
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
int BurgersAdvection(double *f, double *u, int dir, void *s, double t)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.