-
Notifications
You must be signed in to change notification settings - Fork 0
/
CA_PS_PRDrive.m
95 lines (69 loc) · 2.19 KB
/
CA_PS_PRDrive.m
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright Xin-Guang Zhu, Yu Wang, Donald R. ORT and Stephen P. LONG
%CAS-MPG Partner Institute for Computational Biology, Shanghai Institutes for Biological Sciences, CAS, Shanghai,200031
%China Institute of Genomic Biology and Department of Plant Biology, Shanghai Institutes for Biological Sciences, CAS, Shanghai,200031
%University of Illinois at Urbana Champaign
%Global Change and Photosynthesis Research Unit, USDA/ARS, 1406 Institute of Genomic Biology, Urbana, IL 61801, USA.
% This file is part of e-photosynthesis.
% e-photosynthesis 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;
% e-photosynthesis 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 (GPL)
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function CA_PS_PRDrive(j)
global CA_FLAG;
CA_FLAG = 1;
Begin = 1;
fin = SSI(Begin);
global options1;
global tglobal;
time = tglobal;
global PS_PR_OLDTIME;
global PS_PR_TIME_N;
global PS_PR_VEL;
PS_PR_OLDTIME = 0;
PS_PR_TIME_N = 1;
PS_PR_VEL = zeros(27,1);
global PS_OLD_TIME;
global PS_TIME_N;
global PS_VEL;
PS_OLD_TIME = 0;
PS_TIME_N= 0;
PS_VEL = zeros(1,1);
global PR_OLD_TIME;
global PR_TIME_N;
global PR_VEL;
PR_OLD_TIME = 0;
PR_TIME_N = 1;
PR_VEL = zeros(1,1);
Begin = 1;
PSs = CA_PSI;
PrS = CA_PRI;
CA_AssignVmax;
PS_PRs = zeros(23,1);
for m=1:4
PS_PRs(m) = PSs(m);
end
for m = 5:14
PS_PRs(m) = PSs(m+1);
end
for m = 15:16
PS_PRs(m) = PrS(m-14);
end
for m = 17:23
PS_PRs(m) = PrS(m-13);
end
ModelComb = IModelCom;
global PR_PS_com;
PR_PS_com = 1;
PS_PR_Param = 0;
global CO2A;
CO2A = zeros(5,1);
[Tt,d] = ode15s(@PS_PRmb,[0,time],PS_PRs,options1,PS_PR_Param);
CA_PSPR_Out(Tt, d);
PR_PS_com = 0;