25 int ndims = solver->
ndims;
26 int nvars = solver->
nvars;
28 int ghosts = solver->
ghosts;
31 double *local_integral = (
double*) calloc (nvars,
sizeof(
double));
32 double *global_integral = (
double*) calloc (nvars,
sizeof(
double));
36 for (d=0; d<ndims; d++) {
37 for (v=0; v<nvars; v++) {
38 double dxinv[ndims], dS = 1.0;
39 for (k=0; k<ndims; k++) {
43 for (k=0; k<ndims; k++)
if (k!=d) dS *= (1.0/dxinv[k]);
58 free(global_integral);
MPI related function definitions.
int MPISum_double(double *, double *, int, void *)
Some basic definitions and macros.
Structure containing all solver-specific variables and functions.
#define _ArrayAXPY_(x, a, y, size)
Contains structure definition for hypar.
#define _ArraySetValue_(x, size, value)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
double * TotalBoundaryIntegral
double * StepBoundaryIntegral
Structure of MPI-related variables.
int BoundaryIntegral(void *s, void *m)
Contains macros and function definitions for common array operations.