-
Notifications
You must be signed in to change notification settings - Fork 0
/
assignCodes_to_Model_Parameters.c
89 lines (80 loc) · 2.47 KB
/
assignCodes_to_Model_Parameters.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
#include "./Include/MODEL.h"
void AssignCodes_to_Model_Parameters(int j, char * Label, Parameter_Table *P)
{
char * p;
Label[0] = '\0';
switch(j)
{
case 0: p = strcat(Label, "-Hu"); /* Mu Per Capita Movement Rate */
break;
case 1: p = strcat(Label, "-HN");
break;
case 2: p = strcat(Label, "-HM");
break;
case 3: p = strcat(Label, "-HX");
break;
case 4: p = strcat(Label, "-HY");
break;
case 5: p = strcat(Label, "-HS"); /* Number of Resource Species */
break;
case 6: p = strcat(Label, "-H0"); /* Lambda_R_0 */
break;
case 7: p = strcat(Label, "-H1"); /* Delta_R_0 */
break;
case 8: p = strcat(Label, "-H2"); /* Lambda_R_1 */
break;
case 9: p = strcat(Label, "-H3"); /* Delta_R_1 */
break;
case 10: p = strcat(Label, "-HK"); /* Patch Carrying Capacity */
break;
case 11: p = strcat(Label, "-H4"); /* Beta_R */
break;
case 12: p = strcat(Label, "-H5"); /* Lambda_C_0 */
break;
case 13: p = strcat(Label, "-H6"); /* Delta_C_0 */
break;
#ifdef DIFFUSION_AZTECA_4D_1
case 14: p = strcat(Label, "-HuQ"); /* Lambda_C_1 */ /* Overloaded!!! */
break;
#else
case 14: p = strcat(Label, "-H7"); /* Lambda_C_1 */
break;
#endif
case 15: p = strcat(Label, "-H8"); /* Delta_C_1 */
break;
case 16: p = strcat(Label, "-H9"); /* Alpha_C_0 */
break;
case 17: p = strcat(Label, "-H10"); /* Nu_C_0 */
break;
case 18: p = strcat(Label, "-H11"); /* Xhi_C_0 */
break;
case 19: p = strcat(Label, "-H12"); /* Eta_C_0 */
break;
case 20: p = strcat(Label, "-H13");
break;
case 21: p = strcat(Label, "-H14");
break;
case 22: p = strcat(Label, "-H15");
break;
case 23: p = strcat(Label, "-H16");
break;
case 24: p = strcat(Label, "-H17");
break;
case 25: p = strcat(Label, "-H18");
break;
case 26: p = strcat(Label, "-H19");
break;
case 27: p = strcat(Label, "-Hp1");
break;
case 28: p = strcat(Label, "-Hp2");
break;
case 29: p = strcat(Label, "-H20");
break;
default:
printf(".... INVALID PARAMETER KEY [key = %d]\n", j);
printf(".... The permited correspondences are 0 to 6:\n");
printf("\n");
fprintf_Model_Parameters(stdout, P);
exit(0);
}
}