added README_changes.txt
[wrffire.git] / wrfv2_fire / chem / KPP / kpp / kpp-2.1 / util / Template_Fun_Chem.m
blob62ad1e19d1d6572d8d82273dd6299080676688e7
2 % Wrapper for calling the ODE function routine
3 % in a format required by Matlab's ODE integrators
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 );
20   TIME = Told;
22 return