24
24
#include <grass/linkm.h>
25
25
#include <grass/glocale.h>
28
27
#include <grass/waterglobs.h>
32
FILE *fdelevin, *fddxin, *fddyin, *fdrain, *fdinfil, *fdtraps,
33
*fdmanin, *fddepth, *fddisch, *fderr;
34
FILE *fdwdepth, *fddetin, *fdtranin, *fdtauin, *fdtc, *fdet, *fdconc,
70
struct Cell_head cellhd;
78
double xmin, ymin, xmax, ymax;
79
double mayy, miyy, maxx, mixx;
83
double bxmi, bymi, bxma, byma, bresx, bresy;
91
double **v1, **v2, **slope;
92
double **gama, **gammas, **si, **inf, **sigma;
93
float **dc, **tau, **er, **ct, **trap;
96
/* double vavg[MAXW][2], stack[MAXW][3], w[MAXW][3]; */
97
double vavg[MAXW][2], w[MAXW][3];
102
double hhmax, sisum, vmean;
103
double infsum, infmean;
104
int maxw, maxwa, nwalk;
105
double rwalk, bresx, bresy, xrand, yrand;
106
double stepx, stepy, xp0, yp0;
107
double chmean, si0, deltap, deldif, cch, hhc, halpha;
109
/* int maxwab, nstack; */
111
int iterout, mx2o, my2o;
112
int miter, nwalka, lwwfin;
120
struct History history; /* holds meta-data (title, comments,..) */
30
122
/* **************************************************** */
31
123
/* create walker representation of si */
32
124
/* ******************************************************** */