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