13 int ghosts = solver->
ghosts;
14 int ndims = solver->
ndims;
15 int nvars = solver->
nvars;
16 int index[ndims], bounds[ndims], offset[ndims];
20 for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
29 for (v = 0; v < nvars; v++) f[nvars*p+v] =
drift(x) * u[nvars*p+v];
int FPDoubleWellAdvection(double *f, double *u, int dir, void *s, double t)
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)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.