-
Notifications
You must be signed in to change notification settings - Fork 5
/
sxw_module.h
67 lines (55 loc) · 1.73 KB
/
sxw_module.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
61
62
63
64
65
66
67
/**
* \file sxw_module.h
* \brief Contains declarations for relevant \ref SXW functions from several
* different source files.
*
* Ideally this file would be incorporated into \ref sxw.h to make one header
* file for the entire SXW module.
*
* \author CWB (initial coding)
* \date 22 May 2002
* \ingroup SXW
*/
#ifndef SXW_MODULE_DEF
#define SXW_MODULE_DEF
#include "sw_src/include/SW_Control.h"
#include "sw_src/include/SW_Model.h"
#include "sw_src/include/SW_VegProd.h"
#include "sw_src/include/SW_SoilWater.h"
#include "sw_src/include/SW_Files.h"
/* some macros for the production conversion array */
#define PC_Bmass 0
#define PC_Litter 1
#define PC_Live 2
/* These functions are found in sxw_resource.c */
void _sxw_root_phen(void);
void _sxw_update_resource(void);
void _sxw_update_root_tables( RealF sizes[] );
/* These functions are found in sxw_soilwat.c */
void _sxw_sw_setup(RealF sizes[]);
void _sxw_generate_weather(void);
void _sxw_sw_run(void);
void _sxw_sw_clear_transp(void);
/* These functions are found in sxw_environs.c */
void _sxw_set_environs(void);
/* testing code-- see sxw_tester.c */
void _sxw_test(void);
//sql
void connect(char *debugout);
void createTables(void);
void disconnect(void);
void insertInfo(void);
void insertRootsXphen(double * _rootsXphen);
void insertSXWPhen(void);
void insertSXWProd(void);
void insertInputVars(void);
void insertInputProd(void);
void insertInputSoils(void);
void insertOutputVars(RealF * _resource_cur, RealF added_transp);
void insertRgroupInfo(RealF * _resource_cur);
void insertOutputProd(SW_VEGPROD *v);
void insertRootsSum(RealD * _roots_active_sum);
void insertRootsRelative(RealD * _roots_active_rel);
void insertTranspiration(void);
void insertSWCBulk(void);
#endif