26 int dim = boundary->
dim;
27 int face = boundary->
face;
30 int bounds[ndims], indexb[ndims], indexi[ndims];
37 if (face == 1) indexi[dim] = ghosts-1-indexb[dim];
38 else if (face == -1) indexi[dim] = size[dim]-indexb[dim]-1;
Containts the structures and definitions for boundary condition implementation.
int BCExtrapolateU(void *b, void *m, int ndims, int nvars, int *size, int ghosts, double *phi, double waqt)
Some basic definitions and macros.
Structure containing the variables and function pointers defining a boundary.
#define _ArraySubtract1D_(x, a, b, size)
#define _ArrayAdd1D_(x, a, b, size)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#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.