-
Notifications
You must be signed in to change notification settings - Fork 416
/
Copy pathinitialize_options.c
103 lines (99 loc) · 3.57 KB
/
initialize_options.c
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/******************************************************************************
* @section DESCRIPTION
*
* This subroutine initalizes all options before they are called by
* the model.
*
* @section LICENSE
*
* The Variable Infiltration Capacity (VIC) macroscale hydrological model
* Copyright (C) 2016 The Computational Hydrology Group, Department of Civil
* and Environmental Engineering, University of Washington.
*
* The VIC model is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*****************************************************************************/
#include <vic_driver_shared_all.h>
/******************************************************************************
* @brief Initialize all options before they are called by the
* model.
*****************************************************************************/
void
initialize_options()
{
extern option_struct options;
/** Initialize model option flags **/
// simulation modes
options.AboveTreelineVeg = -1;
options.AERO_RESIST_CANSNOW = AR_406_FULL;
options.BLOWING = false;
options.BLOWING_VAR_THRESHOLD = true;
options.BLOWING_CALC_PROB = true;
options.BLOWING_SIMPLE = false;
options.BLOWING_FETCH = true;
options.BLOWING_SPATIAL_WIND = true;
options.CARBON = false;
options.CLOSE_ENERGY = false;
options.COMPUTE_TREELINE = false;
options.CONTINUEONERROR = true;
options.CORRPREC = false;
options.EQUAL_AREA = false;
options.EXP_TRANS = true;
options.FROZEN_SOIL = false;
options.FULL_ENERGY = false;
options.GRND_FLUX_TYPE = GF_410;
options.IMPLICIT = true;
options.LAKES = false;
options.LAKE_PROFILE = false;
options.NOFLUX = false;
options.QUICK_FLUX = true;
options.QUICK_SOLVE = false;
options.RC_MODE = RC_JARVIS;
options.SHARE_LAYER_MOIST = true;
options.SNOW_DENSITY = DENS_BRAS;
options.SPATIAL_FROST = false;
options.SPATIAL_SNOW = false;
options.TFALLBACK = true;
// Model dimensions
options.Ncanopy = 3;
options.Nfrost = 1;
options.Nlakebasnode = MAX_LAKE_BASIN_NODES;
options.Nlakenode = MAX_LAKE_NODES;
options.Nlayer = 3;
options.Nnode = 3;
options.ROOT_ZONES = 0;
options.SNOW_BAND = 1;
// input options
options.ALB_SRC = FROM_VEGLIB;
options.BASEFLOW = ARNO;
options.FCAN_SRC = FROM_DEFAULT;
options.GRID_DECIMAL = 2;
options.JULY_TAVG_SUPPLIED = false;
options.LAI_SRC = FROM_VEGLIB;
options.ORGANIC_FRACT = false;
options.BULK_DENSITY_COMB = false;
options.MAX_SNOW_ALBEDO = false;
options.VEGLIB_FCAN = false;
options.VEGLIB_PHOTO = false;
options.VEGPARAM_ALB = false;
options.VEGPARAM_FCAN = false;
options.VEGPARAM_LAI = false;
// state options
options.STATE_FORMAT = UNSET_FILE_FORMAT;
options.STATENAME_CESM = false;
options.INIT_STATE = false;
options.SAVE_STATE = false;
// output options
options.Noutstreams = 2;
}