-
Notifications
You must be signed in to change notification settings - Fork 0
/
assignVectorEntry_to_TableStructure.c
executable file
·249 lines (210 loc) · 5.18 KB
/
assignVectorEntry_to_TableStructure.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
#include <MODEL.h>
void AssignVectorEntry_to_Structure(Parameter_Table * P, int j, double value)
{
switch(j)
{
case 0: /* H */
P->H = value;
break;
case 1: /* H_Delta */
P->H_Delta = value;
break;
case 2:
P->H_Birth = value;
break;
case 3:
P->H_Sigma_0 = value;
break;
case 4:
P->H_Recov_0 = value;
break;
case 5:
P->n_H = (int)value; //(int)value + 1;
break;
case 6:
P->H_Gamma = value;
break;
case 7:
P->Imm = value;
break;
case 8:
P->H_Xhi = value;
break;
case 9:
P->H_Rho = value;
break;
case 10:
P->H_Eta = value;
break;
case 11:
P->H_Nu = value;
break;
case 12:
P->M_a = value;
break;
case 13:
P->M_b = value;
break;
case 14:
P->M_c = value;
break;
case 15:
P->M_Delta = value;
break;
case 16:
P->M_Delta_R = value;
break;
case 17:
P->M_Delta_PE = value;
break;
case 18:
P->M_Fecundity = value;
break;
case 19:
P->M_NoEggs = value;
break;
case 20:
P->L_Devel = value;
break;
case 21:
P->L_Delta_0 = value;
break;
case 22:
P->L_Delta_P = value;
break;
case 23:
P->L_Delta_R = value;
break;
case 24:
P->L_Delta_PE = value;
break;
case 25:
P->K_0 = value;
break;
case 26:
P->K_Sigma = value;
break;
case 27:
P->K_A = value;
break;
case 28:
P->K_p = value;
break;
case 29:
P->K_E = value;
break;
case 30:
P->n_V = (int)value; // (int)value + 1;
break;
case 31:
P->M_Gamma = value;
break;
case 32:
/* Shift in temperature for adult mosquitoes */
P->R_T.TEMP__SHIFT = value;
break;
case 33:
/* Shift in temperature due to altitude */
P->R_T.T_ELEVATION = value;
break;
case 34:
/* External Influx of Adult Mosquitoes into the system */
P->M_Imm = value;
break;
case 35:
/* External Influx of Adult Mosquitoes into the system */
P->s__0 = value;
break;
case 36:
/* External Influx of Adult Mosquitoes into the system */
P->e__0 = value;
break;
case 37:
/* External Influx of Adult Mosquitoes into the system */
P->i__0 = value;
break;
case 38:
/* External Influx of Adult Mosquitoes into the system */
P->c__0 = value;
break;
case 39:
/* Maturation rate of water into available water */
P->K_Maturation = value;
break;
case 40:
/* */
P->Error_Parameter_0 = value;
break;
case 41:
/* */
P->Error_Parameter_1 = value;
break;
case 42:
/* */
P->R_T.x = value;
break;
case 43:
P->M_c_1 = value;
break;
case 44:
P->M_c_2 = value;
break;
case 45:
P->e__2 = value;
break;
case 46:
P->m = value;
break;
case 47:
/* Modifier on loss of immunity */
P->H_mSigma = value;
break;
case 48:
/* Modifier on recovery from infection */
P->H_mRecov = value;
break;
case 49:
/* Modifier on human susceptibility */
P->H_mBeta = value;
break;
case 50:
/* Modifier on human infectiousness */
P->H_mM_c = value;
break;
case 51:
/* Temperature */
P->Temp= value;
values_TempDependency(P->Temp, P);
break;
case 52:
/* Initial fraction of S1 (SnInR) */
P->s1__0= value;
break;
case 53:
/* Initial fraction of I1 (SnInR) */
P->i1__0= value;
break;
case 54:
/* Initial fraction of S2 (SnInR) */
P->s2__0= value;
break;
case 55:
/* Initial fraction of I2 (SnInR) */
P->i2__0= value;
break;
case 56:
/* Initial fraction of S3 (SnInR) */
P->s3__0= value;
break;
case 57:
/* Initial fraction of I3 (SnInR) */
P->i3__0= value;
break;
default:
printf(".... INVALID PARAMETER KEY [key = %d]\n", j);
int No_of_PARAMETERS = MODEL_PARAMETERS_MAXIMUM;
printf(" The maximum number of parameters is %d\n", No_of_PARAMETERS);
printf(" The permited number of keys go from 0, to %d\n", No_of_PARAMETERS-1);
exit(0);
}
}