18 #undef _MINIMUM_GHOSTS_ 23 #define _MINIMUM_GHOSTS_ 2 76 int ghosts = solver->
ghosts;
77 int ndims = solver->
ndims;
78 int nvars = solver->
nvars;
93 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
96 static const double c1 = 7.0 / 12.0;
97 static const double c2 = -1.0 / 12.0;
100 #pragma omp parallel for schedule(auto) default(shared) private(i,index_outer,indexL,indexR,indexI) 101 for (i=0; i<N_outer; i++) {
108 for (indexI[dir] = 0; indexI[dir] < dim[dir]+1; indexI[dir]++) {
109 indexLL[dir] = indexI[dir]-2;
110 indexL[dir] = indexI[dir]-1;
111 indexR[dir] = indexI[dir];
112 indexRR[dir] = indexI[dir]+1;
120 int v;
for (v=0; v<nvars; v++) {
121 fI[p*nvars+v] = c2 * fC[qLL*nvars+v]
122 + c1 * fC[qL *nvars+v]
123 + c1 * fC[qR *nvars+v]
124 + c2 * fC[qRR*nvars+v];
MPI related function definitions.
Some basic definitions and macros.
#define _ArrayIndexnD_(N, index, imax, i, ghost)
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
int Interp1PrimFourthOrderCentral(double *fI, double *fC, double *u, double *x, int upw, int dir, void *s, void *m, int uflag)
4th order central reconstruction (component-wise) on a uniform grid
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.
#define _ArrayProduct1D_(x, size, p)