18 #undef _MINIMUM_GHOSTS_
23 #define _MINIMUM_GHOSTS_ 1
76 int ghosts = solver->
ghosts;
77 int ndims = solver->
ndims;
78 int nvars = solver->
nvars;
83 int indexL[ndims], indexR[ndims], indexI[ndims], index_outer[ndims], bounds_outer[ndims], bounds_inter[ndims];
85 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
89 #pragma omp parallel for schedule(auto) default(shared) private(i,index_outer,indexL,indexR,indexI)
90 for (i=0; i<N_outer; i++) {
95 for (indexI[dir] = 0; indexI[dir] < dim[dir]+1; indexI[dir]++) {
96 indexL[dir] = indexI[dir]-1;
97 indexR[dir] = indexI[dir];
101 int v;
for (v=0; v<nvars; v++) fI[p*nvars+v] = 0.5*(fC[qL*nvars+v]+fC[qR*nvars+v]);
Definitions for the functions computing the interpolated value of the primitive at the cell interface...
#define _ArrayIndexnD_(N, index, imax, i, ghost)
MPI related function definitions.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayCopy1D_(x, y, size)
int Interp1PrimSecondOrderCentral(double *, double *, double *, double *, int, int, void *, void *, int)
2nd order central reconstruction (component-wise) on a uniform grid
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
#define _ArrayProduct1D_(x, size, p)
Structure containing all solver-specific variables and functions.