44 double *FluxI = solver->
fluxI;
45 double *Func = solver->
fluxC;
49 int ndims = solver->
ndims;
50 int nvars = solver->
nvars;
51 int ghosts = solver->
ghosts;
53 double *dxinv = solver->
dxinv;
56 int index[ndims], index1[ndims], index2[ndims], dim_interface[ndims];
63 for (d = 0; d < ndims; d++) {
65 int size_cellcenter = 1;
for (i = 0; i < ndims; i++) size_cellcenter *= (dim[i] + 2*ghosts);
66 int size_interface = 1;
for (i = 0; i < ndims; i++) size_interface *= dim_interface[i];
82 for (v=0; v<nvars; v++)
83 par[nvars*p+v] += ((dxinv[offset+ghosts+index[d]] * dxinv[offset+ghosts+index[d]])
84 * (FluxI[nvars*p2+v] - FluxI[nvars*p1+v]));
88 offset += dim[d] + 2*ghosts;
int npoints_local_wghosts
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
MPI related function definitions.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
int(* InterpolateInterfacesPar)(double *, double *, int, void *, void *)
#define _ArrayBlockMultiply_(x, a, n, bs)
int ParabolicFunctionCons1Stage(double *par, double *u, void *s, void *m, double t)
#define _ArrayCopy1D_(x, y, size)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
Structure of MPI-related variables.
Structure containing all solver-specific variables and functions.
int(* GFunction)(double *, double *, int, void *, double)