source: palm/trunk/UTIL/chemistry/gasphase_preproc/kpp/util/Template_Fun_Chem.m @ 2696

Last change on this file since 2696 was 2696, checked in by kanani, 6 years ago

Merge of branch palm4u into trunk

File size: 506 bytes
Line 
1
2% Wrapper for calling the ODE function routine
3% in a format required by Matlab's ODE integrators
4
5function 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
22return
Note: See TracBrowser for help on using the repository browser.