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(* GFunction)(double *, double *, int, void *, double)
MPI related function definitions.
int ParabolicFunctionCons1Stage(double *par, double *u, void *s, void *m, double t)
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)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
int(* InterpolateInterfacesPar)(double *, double *, int, void *, void *)
Structure of MPI-related variables.
#define _ArrayBlockMultiply_(x, a, n, bs)
int npoints_local_wghosts
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.