18 #undef _MINIMUM_GHOSTS_ 23 #define _MINIMUM_GHOSTS_ 1 75 int ghosts = solver->
ghosts;
76 int ndims = solver->
ndims;
77 int nvars = solver->
nvars;
82 int indexC[ndims], indexI[ndims], index_outer[ndims], bounds_outer[ndims], bounds_inter[ndims];
84 _ArrayCopy1D_(dim,bounds_inter,ndims); bounds_inter[dir] += 1;
88 #pragma omp parallel for schedule(auto) default(shared) private(i,index_outer,indexC,indexI) 89 for (i=0; i<N_outer; i++) {
93 for (indexI[dir] = 0; indexI[dir] < dim[dir]+1; indexI[dir]++) {
94 indexC[dir] = (upw > 0 ? indexI[dir]-1 : indexI[dir]);
97 int v;
for (v=0; v<nvars; v++) fI[p*nvars+v] = fC[q*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 Interp1PrimFirstOrderUpwind(double *fI, double *fC, double *u, double *x, int upw, int dir, void *s, void *m, int uflag)
1st order upwind 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)