34 int ghosts = solver->
ghosts;
36 offset[_MODEL_NDIMS_], d, done;
50 S[p] = exp(-param->
grav*xcoord);
52 double pi = 4.0 * atan(1.0);
53 double phi = -sin(2*pi*xcoord)/(2*pi);
71 _ArrayCopy1D_(indexb,indexi,_MODEL_NDIMS_); indexi[d] = ghosts-1-indexb[d];
79 if (mpi->
ip[d] == mpi->
iproc[d]-1) {
84 _ArrayCopy1D_(indexb,indexi,_MODEL_NDIMS_); indexi[d] = dim[d]-1-indexb[d];
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
int Euler1DGravityField(void *s, void *m)
MPI related function definitions.
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArrayCopy1D_(x, y, size)
Contains structure definition for hypar.
Contains macros and function definitions for common array operations.
1D Euler Equations (inviscid, compressible flows)
Structure of MPI-related variables.
Structure containing all solver-specific variables and functions.
Structure containing variables and parameters specific to the 1D Euler equations. This structure cont...