43 double *adv = param->
a;
47 fprintf(stderr,
"Error in LinearADRAdvectionField(): param->constant_advection == 1!\n");
51 fprintf(stderr,
"Error in LinearADRAdvectionField(): param->adv_filename is \"none\"!\n");
57 int ghosts = solver->
ghosts;
64 fprintf(stderr,
"Error in LinearADRAdvectionField(): Incorrect adv_arr_size\n");
74 strcat(fname_root,
"_");
75 strcat(fname_root, index);
80 if (dim_adv == NULL) {
93 fprintf(stderr,
"Error in LinearADRAdvectionField()\n");
94 fprintf(stderr,
" ReadArray() returned error!\n");
111 fprintf(stderr,
"Error in LinearADRAdvectionField()\n");
112 fprintf(stderr,
" ReadArraywInterp() returned error!\n");
135 int indexb[solver->
ndims],
136 indexi[solver->
ndims],
137 bounds[solver->
ndims],
138 offset[solver->
ndims];
139 for (d = 0; d < solver->
ndims; d++) {
149 _ArrayCopy1D_((adv+p2*adv_nvar), (adv+p1*adv_nvar), adv_nvar);
159 _ArrayCopy1D_((adv+p2*adv_nvar), (adv+p1*adv_nvar), adv_nvar);
172 _ArrayCopy1D_((adv+p2*adv_nvar), (adv+p1*adv_nvar), adv_nvar);
177 if (mpi->
ip[d] == mpi->
iproc[d]-1) {
185 _ArrayCopy1D_((adv+p2*adv_nvar), (adv+p1*adv_nvar), adv_nvar);
Some common functions used here and there.
MPI related function definitions.
int MPIExchangeBoundariesnD(int, int, int *, int, void *, double *)
Some basic definitions and macros.
char adv_filename[_MAX_STRING_SIZE_]
Structure containing variables and parameters specific to the linear advection-diffusion-reaction mod...
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)
Linear Advection-Diffusion-Reaction model.
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
int LinearADRAdvectionField(void *s, void *m, int idx, int nsims, int *dim_adv)
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 *)