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]);
Definitions for the functions computing the first derivative.
#define _ArrayIndexnD_(N, index, imax, i, ghost)
MPI related function definitions.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayCopy1D_(x, y, size)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
#define _ArrayProduct1D_(x, size, p)
int FirstDerivativeSecondOrderCentral(double *, double *, int, int, void *, void *)
Structure of MPI-related variables.
Structure containing all solver-specific variables and functions.