-
Notifications
You must be signed in to change notification settings - Fork 23
/
DHSVMChannel.h
executable file
·60 lines (55 loc) · 2.23 KB
/
DHSVMChannel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* -------------------------------------------------------------
file: DHSVMChannel.h
------------------------------------------------------------- */
/* -------------------------------------------------------------
Battelle Memorial Institute
Pacific Northwest Laboratory
------------------------------------------------------------- */
/* -------------------------------------------------------------
Created August 30, 1996 by William A Perkins
$Id: DHSVMChannel.h,v 1.11 2004/05/03 03:28:43 colleen Exp $
------------------------------------------------------------- */
#ifndef _DHSVMChannel_h_
#define _DHSVMChannel_h_
#include "settings.h" /* for data.h */
#include "data.h"
#include "getinit.h"
#include "channel.h"
#include "channel_grid.h"
/* -------------------------------------------------------------
struct CHANNEL
------------------------------------------------------------- */
typedef struct {
ChannelClass *stream_class;
ChannelClass *road_class;
Channel *streams;
Channel *roads;
ChannelMapPtr **stream_map;
ChannelMapPtr **road_map;
FILE *streamout;
FILE *roadout;
FILE *streamflowout;
FILE *roadflowout;
FILE *sedstreamout;
FILE *sedroadout;
FILE *sedstreamflowout;
FILE *sedroadflowout;
FILE *sedstreaminflow;
FILE *sedroadinflow;
} CHANNEL;
/* -------------------------------------------------------------
available functions
------------------------------------------------------------- */
void InitChannel(LISTPTR Input, MAPSIZE *Map, int deltat, CHANNEL *channel,
SOILPIX **SoilMap, int *MaxStreamID, int *MaxRoadID, OPTIONSTRUCT *Options);
void InitChannelDump(CHANNEL *channel, char *DumpPath);
void InitChannelSedimentDump(CHANNEL *channel, char *DumpPath, int ChannelRouting);
double ChannelCulvertFlow(int y, int x, CHANNEL *ChannelData);
void RouteChannel(CHANNEL * ChannelData, TIMESTRUCT * Time, MAPSIZE * Map,
TOPOPIX ** TopoMap, SOILPIX ** SoilMap, AGGREGATED * Total,
OPTIONSTRUCT *Options, ROADSTRUCT ** Network,
SOILTABLE * SType, PRECIPPIX ** PrecipMap, SEDPIX **SedMap,
float Tair, float Rh, float *SedDiams);
void ChannelCut(int y, int x, CHANNEL *ChannelData, ROADSTRUCT *Network);
uchar ChannelFraction(TOPOPIX *topo, ChannelMapRec *rds);
#endif