24 int ndims = solver->
ndims;
25 int nvars = solver->
nvars;
27 int ghosts = solver->
ghosts;
31 int index[ndims], done = 0;
32 double *local_integral = (
double*) calloc (nvars,
sizeof(
double));
39 double dV = 1.0;
for (d=0; d<ndims; d++) dV *= (1.0/dxinv[d]);
40 for (v=0; v<nvars; v++) local_integral[v] += (u[p*nvars+v]*dV);
MPI related function definitions.
int MPISum_double(double *, double *, int, void *)
Some basic definitions and macros.
int VolumeIntegral(double *VolumeIntegral, double *u, void *s, void *m)
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)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
Structure of MPI-related variables.
Contains macros and function definitions for common array operations.