14 #undef _MINIMUM_GHOSTS_ 19 #define _MINIMUM_GHOSTS_ 1 66 int ghosts = solver->
ghosts;
67 int ndims = solver->
ndims;
68 int nvars = solver->
nvars;
73 int indexC[ndims], indexI[ndims], index_outer[ndims], bounds_outer[ndims], bounds_inter[ndims];
75 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
81 for (indexI[dir] = 0; indexI[dir] < dim[dir]+1; indexI[dir]++) {
84 indexC[dir] = indexI[dir]-1;
_ArrayIndex1D_(ndims,dim,indexC,ghosts,qL);
85 indexC[dir] = indexI[dir] ;
_ArrayIndex1D_(ndims,dim,indexC,ghosts,qR);
86 int v;
for (v=0; v<nvars; v++) fI[p*nvars+v] = (fC[qR*nvars+v] - fC[qL*nvars+v]);
MPI related function definitions.
Some basic definitions and macros.
Structure containing all solver-specific variables and functions.
int Interp2PrimSecondOrder(double *fI, double *fC, int dir, void *s, void *m)
2nd order component-wise interpolation of the 2nd primitive on a uniform grid
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
Definitions for the functions computing the interpolated value of the primitive at the cell interface...
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.