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