forked from kettner/hydrotrend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hydrotrend_irf.h
55 lines (47 loc) · 1.91 KB
/
hydrotrend_irf.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
#if !defined(HYDROTREND_IRF_H)
#define HYDROTREND_IRF_H
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct
{
long day;
long n_days;
double *q;
double *velocity;
double *width;
double *depth;
double *qs;
double *cs;
double *qb;
double *temp;
double *prec;
} HydrotrendData;
extern HydrotrendData* new_data();
extern void initialize_data(HydrotrendData* data, int n_days);
extern void hydro_initialize(HydrotrendData *self, char* in_dir, char* in_file_prefix, char* out_dir);
// extern HydrotrendData * hydro_initialize (char* in_dir, char *in_file_prefix, char *out_dir);
extern HydrotrendData * hydro_run (HydrotrendData * s, double time);
extern HydrotrendData * hydro_finalize (HydrotrendData * s);
extern double * hydro_get_velocity_ptr (HydrotrendData * self);
extern double hydro_get_velocity (HydrotrendData * self);
extern double * hydro_get_width_ptr (HydrotrendData * self);
extern double hydro_get_width (HydrotrendData * self);
extern double * hydro_get_depth_ptr (HydrotrendData * self);
extern double hydro_get_depth (HydrotrendData * self);
extern double * hydro_get_water_discharge_ptr (HydrotrendData * self);
extern double hydro_get_water_discharge (HydrotrendData * self);
extern double * hydro_get_sediment_discharge_ptr (HydrotrendData * self);
extern double hydro_get_sediment_discharge (HydrotrendData * self);
extern double * hydro_get_sediment_concentration_ptr(HydrotrendData * self);
extern double hydro_get_sediment_concentration(HydrotrendData * self);
extern double * hydro_get_bedload_flux_ptr (HydrotrendData * self);
extern double hydro_get_bedload_flux (HydrotrendData * self);
extern double * hydro_get_precipitation_ptr (HydrotrendData * self);
extern double hydro_get_precipitation (HydrotrendData * self);
extern double * hydro_get_temperature_ptr (HydrotrendData * self);
extern double hydro_get_temperature (HydrotrendData * self);
#if defined(__cplusplus)
}
#endif
#endif