14 #undef _MINIMUM_GHOSTS_ 18 #define _MINIMUM_GHOSTS_ 1 47 int ghosts = solver->
ghosts;
48 int ndims = solver->
ndims;
49 int nvars = solver->
nvars;
54 fprintf(stderr,
"Error in SecondDerivativeSecondOrder(): input arrays not allocated.\n");
58 fprintf(stderr,
"Error in SecondDerivativeSecondOrder(): insufficient number of ghosts.\n");
64 int indexC[ndims], index_outer[ndims], bounds_outer[ndims];
70 for (i = 0; i < dim[dir]; i++) {
75 for (v=0; v<nvars; v++) D2f[qC*nvars+v] = f[qL*nvars+v]-2*f[qC*nvars+v]+f[qR*nvars+v];
MPI related function definitions.
Some basic definitions and macros.
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
int SecondDerivativeSecondOrderCentral(double *D2f, double *f, int dir, void *s, void *m)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
Definitions for the functions computing the second derivative.