41 strcat(fname_root,
"_");
42 strcat(fname_root, index);
47 if (dim_topo == NULL) {
60 fprintf(stderr,
"Error in ShallowWater2DTopography()\n");
61 fprintf(stderr,
" ReadArray() returned error!\n");
78 fprintf(stderr,
"Error in ShallowWater2DTopography()\n");
79 fprintf(stderr,
" ReadArraywInterp() returned error!\n");
103 if (mpi->
iproc[d] == 1) {
109 _ArrayCopy1D_(indexb,indexi,_MODEL_NDIMS_); indexi[d] = indexb[d] + dim[d] - ghosts;
138 _ArrayCopy1D_(indexb,indexi,_MODEL_NDIMS_); indexi[d] = ghosts-1-indexb[d];
146 if (mpi->
ip[d] == mpi->
iproc[d]-1) {
151 _ArrayCopy1D_(indexb,indexi,_MODEL_NDIMS_); indexi[d] = dim[d]-1-indexb[d];
int npoints_local_wghosts
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
void GetStringFromInteger(int, char *, int)
MPI related function definitions.
Function declarations for file I/O functions.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
int ShallowWater2DTopography(void *, void *, int, int, int *)
int ReadArray(int, int, int *, int *, int, void *, void *, double *, double *, char *, int *)
#define _MAX_STRING_SIZE_
2D Shallow Water Equations
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArrayCopy1D_(x, y, size)
int ReadArraywInterp(int, int, int *, int *, int *, int, void *, void *, double *, double *, char *, int *)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
int MPIExchangeBoundariesnD(int, int, int *, int, void *, double *)
Structure of MPI-related variables.
Structure containing variables and parameters specific to the 2D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D ShallowWater equations.
Structure containing all solver-specific variables and functions.
Some common functions used here and there.