Last change
on this file since 3875 was
2696,
checked in by kanani, 7 years ago
|
Merge of branch palm4u into trunk
|
File size:
506 bytes
|
Rev | Line | |
---|
[2696] | 1 | |
---|
| 2 | % Wrapper for calling the ODE function routine |
---|
| 3 | % in a format required by Matlab's ODE integrators |
---|
| 4 | |
---|
| 5 | function P = KPP_ROOT_Fun_Chem(T, Y) |
---|
| 6 | |
---|
| 7 | global TIME FIX RCONST |
---|
| 8 | |
---|
| 9 | Told = TIME; |
---|
| 10 | TIME = T; |
---|
| 11 | KPP_ROOT_Update_SUN; |
---|
| 12 | KPP_ROOT_Update_RCONST; |
---|
| 13 | |
---|
| 14 | % This line calls the Matlab ODE function routine |
---|
| 15 | P = KPP_ROOT_Fun( Y, FIX, RCONST ); |
---|
| 16 | |
---|
| 17 | % To call the mex routine instead, comment the line above and uncomment the following line: |
---|
| 18 | % P = KPP_ROOT_mex_Fun( Y, FIX, RCONST ); |
---|
| 19 | |
---|
| 20 | TIME = Told; |
---|
| 21 | |
---|
| 22 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.