~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to raster/simwe/simlib/hydro.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <grass/linkm.h>
25
25
#include <grass/glocale.h>
26
26
 
27
 
#define MAIN
28
27
#include <grass/waterglobs.h>
29
28
 
 
29
struct options parm;
 
30
struct flags flag;
 
31
 
 
32
FILE *fdelevin, *fddxin, *fddyin, *fdrain, *fdinfil, *fdtraps,
 
33
    *fdmanin, *fddepth, *fddisch, *fderr;
 
34
FILE *fdwdepth, *fddetin, *fdtranin, *fdtauin, *fdtc, *fdet, *fdconc,
 
35
    *fdflux, *fderdep;
 
36
FILE *fdsfile, *fw;
 
37
 
 
38
char *elevin;
 
39
char *dxin;
 
40
char *dyin;
 
41
char *rain;
 
42
char *infil;
 
43
char *traps;
 
44
char *manin;
 
45
/* char *sfile; */
 
46
char *depth;
 
47
char *disch;
 
48
char *err;
 
49
/* char *outwalk; */
 
50
char *mapset;
 
51
char *mscale;
 
52
char *tserie;
 
53
 
 
54
char *wdepth;
 
55
char *detin;
 
56
char *tranin;
 
57
char *tauin;
 
58
char *tc;
 
59
char *et;
 
60
char *conc;
 
61
char *flux;
 
62
char *erdep;
 
63
 
 
64
char *rainval;
 
65
char *maninval;
 
66
char *infilval;
 
67
 
 
68
struct seed seed;
 
69
 
 
70
struct Cell_head cellhd;
 
71
 
 
72
/*
 
73
struct Point *points;
 
74
int npoints;
 
75
int npoints_alloc;
 
76
*/
 
77
 
 
78
double xmin, ymin, xmax, ymax;
 
79
double mayy, miyy, maxx, mixx;
 
80
int mx, my;
 
81
int mx2, my2;
 
82
 
 
83
double bxmi, bymi, bxma, byma, bresx, bresy;
 
84
int maxwab;
 
85
double step, conv;
 
86
 
 
87
double frac;
 
88
double bxmi, bymi;
 
89
 
 
90
float **zz, **cchez;
 
91
double **v1, **v2, **slope;
 
92
double **gama, **gammas, **si, **inf, **sigma;
 
93
float **dc, **tau, **er, **ct, **trap;
 
94
float **dif;
 
95
 
 
96
/* double vavg[MAXW][2], stack[MAXW][3], w[MAXW][3]; */
 
97
double vavg[MAXW][2], w[MAXW][3];
 
98
int iflag[MAXW];
 
99
 
 
100
double hbeta;
 
101
/* int ldemo; */
 
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;
 
108
double eps;
 
109
/* int maxwab, nstack; */
 
110
int maxwab;
 
111
int iterout, mx2o, my2o;
 
112
int miter, nwalka, lwwfin;
 
113
double timec;
 
114
int ts, timesec;
 
115
 
 
116
double rain_val;
 
117
double manin_val;
 
118
double infil_val;
 
119
 
 
120
struct History history; /* holds meta-data (title, comments,..) */
 
121
 
30
122
/* **************************************************** */
31
123
/*       create walker representation of si */
32
124
/* ******************************************************** */