43 fprintf(stderr,
"Error: could not open %s for writing.\n",f);
51 for (i=0; i<ndims; i++) fprintf(out,
"%4d ",index[i]);
52 for (i=0; i<ndims; i++) {
53 int j,offset = 0;
for (j=0; j<i; j++) offset += dim[j];
54 fprintf(out,
"%+1.16E ",x[offset+index[i]]);
56 for (i=0; i<nvars; i++) fprintf(out,
"%+1.16E ",u[nvars*p+i]);
Some basic definitions and macros.
int WriteText(int ndims, int nvars, int *dim, double *x, double *u, char *f, int *index)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
Contains macros and function definitions for common array operations.