50 int ghosts = solver->
ghosts;
51 int ndims = solver->
ndims;
52 int nvars = solver->
nvars;
57 fprintf(stderr,
"Error in FirstDerivativeSecondOrder(): input arrays not allocated.\n");
63 int indexC[ndims], index_outer[ndims], bounds_outer[ndims];
67 #pragma omp parallel for schedule(auto) default(shared) private(i,j,v,index_outer,indexC) 68 for (j=0; j<N_outer; j++) {
72 for (i = -ghosts; i < -ghosts+1; i++) {
77 for (v=0; v<nvars; v++) Df[qC*nvars+v] = 0.5 * (-3*f[qC*nvars+v]+4*f[qR*nvars+v]-f[qRR*nvars+v]);
80 for (i = -ghosts+1; i < dim[dir]+ghosts-1; i++) {
85 for (v=0; v<nvars; v++) Df[qC*nvars+v] = 0.5 * (f[qR*nvars+v]-f[qL*nvars+v]);
88 for (i = dim[dir]+ghosts-1; i < dim[dir]+ghosts; i++) {
93 for (v=0; v<nvars; v++) Df[qC*nvars+v] = 0.5 * (3*f[qC*nvars+v]-4*f[qL*nvars+v]+f[qLL*nvars+v]);
int FirstDerivativeSecondOrderCentral(double *Df, double *f, int dir, int bias, void *s, void *m)
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)
Structure of MPI-related variables.
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
Definitions for the functions computing the first derivative.
#define _ArrayProduct1D_(x, size, p)