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);
int npoints_local_wghosts
#define _ArraySetValue_(x, size, value)
char adv_filename[_MAX_STRING_SIZE_]
#define _ArrayIncrementIndex_(N, imax, i, done)
void GetStringFromInteger(int, char *, int)
Structure containing variables and parameters specific to the linear advection-diffusion-reaction mod...
MPI related function definitions.
Function declarations for file I/O functions.
Linear Advection-Diffusion-Reaction model.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
int ReadArray(int, int, int *, int *, int, void *, void *, double *, double *, char *, int *)
#define _MAX_STRING_SIZE_
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
int LinearADRAdvectionField(void *s, void *m, int idx, int nsims, int *dim_adv)
#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 all solver-specific variables and functions.
Some common functions used here and there.