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);
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
MPI related function definitions.
int MPISum_double(double *, double *, int, void *)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
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 VolumeIntegral(double *VolumeIntegral, double *u, void *s, void *m)