Generated Code

The following is f77 code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

C
C There are a total of 78 entries in the algebraic variable array.
C There are a total of 29 entries in each of the rate and state variable arrays.
C There are a total of 49 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C CONSTS(1) is CT in component environment (dimensionless).
C CONSTS(2) is PM in component environment (dimensionless).
C STATES(1) is V in component membrane (millivolt).
C CONSTS(3) is R in component membrane (millijoule_per_mole_kelvin).
C CONSTS(4) is T in component membrane (kelvin).
C CONSTS(5) is F in component membrane (coulomb_per_mole).
C CONSTS(6) is Cm in component membrane (nanoF).
C ALGBRC(31) is i_Na in component sodium_current (picoA).
C ALGBRC(53) is i_Ca_L in component L_type_Ca_channel (picoA).
C ALGBRC(58) is i_Ca_T in component T_type_Ca_channel (picoA).
C ALGBRC(62) is i_to in component Ca_independent_transient_outward_K_current (picoA).
C ALGBRC(63) is i_sus in component Ca_independent_transient_outward_K_current (picoA).
C ALGBRC(66) is i_K1 in component inward_rectifier (picoA).
C ALGBRC(65) is i_Kr in component delayed_rectifier_K_current (picoA).
C ALGBRC(64) is i_Ks in component delayed_rectifier_K_current (picoA).
C ALGBRC(68) is i_B_Na in component background_currents (picoA).
C ALGBRC(69) is i_B_Ca in component background_currents (picoA).
C ALGBRC(70) is i_p in component sodium_potassium_pump (picoA).
C ALGBRC(71) is i_CaP in component sarcolemmal_calcium_pump_current (picoA).
C ALGBRC(72) is i_NaCa in component Na_Ca_ion_exchanger_current (picoA).
C ALGBRC(1) is i_Stim in component membrane (picoA).
C CONSTS(7) is stim_start in component membrane (second).
C CONSTS(8) is stim_end in component membrane (second).
C CONSTS(9) is stim_period in component membrane (second).
C CONSTS(10) is stim_duration in component membrane (second).
C CONSTS(11) is stim_amplitude in component membrane (picoA).
C ALGBRC(16) is E_Na in component sodium_current (millivolt).
C CONSTS(12) is P_Na in component sodium_current (nanolitre_per_second).
C CONSTS(13) is Na_c in component cleft_space_ion_concentrations (millimolar).
C STATES(2) is Na_i in component intracellular_ion_concentrations (millimolar).
C STATES(3) is m in component sodium_current_m_gate (dimensionless).
C STATES(4) is h1 in component sodium_current_h1_gate (dimensionless).
C STATES(5) is h2 in component sodium_current_h2_gate (dimensionless).
C ALGBRC(2) is E0_m in component sodium_current_m_gate (millivolt).
C ALGBRC(17) is alpha_m in component sodium_current_m_gate (per_second).
C ALGBRC(32) is beta_m in component sodium_current_m_gate (per_second).
C ALGBRC(3) is alpha_h in component sodium_current_h1_gate (per_second).
C ALGBRC(18) is beta_h in component sodium_current_h1_gate (per_second).
C ALGBRC(33) is h_infinity in component sodium_current_h1_gate (dimensionless).
C ALGBRC(43) is tau_h1 in component sodium_current_h1_gate (second).
C ALGBRC(44) is tau_h2 in component sodium_current_h2_gate (second).
C CONSTS(14) is g_Ca_L in component L_type_Ca_channel (nanoS).
C CONSTS(15) is E_Ca_app in component L_type_Ca_channel (millivolt).
C ALGBRC(42) is d_prime in component L_type_Ca_channel (dimensionless).
C STATES(6) is d_L in component L_type_Ca_channel_d_L_gate (dimensionless).
C STATES(7) is f_L in component L_type_Ca_channel_f_L_gate (dimensionless).
C ALGBRC(4) is E0_alpha_d_L in component L_type_Ca_channel_d_L_gate (millivolt).
C ALGBRC(19) is E0_beta_d_L in component L_type_Ca_channel_d_L_gate (millivolt).
C ALGBRC(34) is E10 in component L_type_Ca_channel_d_L_gate (millivolt).
C ALGBRC(45) is alpha_d_L in component L_type_Ca_channel_d_L_gate (per_second).
C ALGBRC(54) is beta_d_L in component L_type_Ca_channel_d_L_gate (per_second).
C ALGBRC(59) is d_L_infinity in component L_type_Ca_channel_d_L_gate (dimensionless).
C ALGBRC(61) is tau_d_L in component L_type_Ca_channel_d_L_gate (second).
C ALGBRC(5) is E0_f_L in component L_type_Ca_channel_f_L_gate (millivolt).
C ALGBRC(20) is alpha_f_L in component L_type_Ca_channel_f_L_gate (per_second).
C ALGBRC(35) is beta_f_L in component L_type_Ca_channel_f_L_gate (per_second).
C ALGBRC(46) is f_L_infinity in component L_type_Ca_channel_f_L_gate (dimensionless).
C ALGBRC(55) is tau_f_L in component L_type_Ca_channel_f_L_gate (second).
C CONSTS(16) is g_Ca_T in component T_type_Ca_channel (nanoS).
C CONSTS(17) is E_Ca_T in component T_type_Ca_channel (millivolt).
C STATES(8) is d_T in component T_type_Ca_channel_d_T_gate (dimensionless).
C STATES(9) is f_T in component T_type_Ca_channel_f_T_gate (dimensionless).
C ALGBRC(6) is E0_d_T in component T_type_Ca_channel_d_T_gate (millivolt).
C ALGBRC(21) is alpha_d_T in component T_type_Ca_channel_d_T_gate (per_second).
C ALGBRC(36) is beta_d_T in component T_type_Ca_channel_d_T_gate (per_second).
C ALGBRC(47) is d_T_infinity in component T_type_Ca_channel_d_T_gate (dimensionless).
C ALGBRC(56) is tau_d_T in component T_type_Ca_channel_d_T_gate (second).
C ALGBRC(7) is E0_f_T in component T_type_Ca_channel_f_T_gate (millivolt).
C ALGBRC(22) is alpha_f_T in component T_type_Ca_channel_f_T_gate (per_second).
C ALGBRC(37) is beta_f_T in component T_type_Ca_channel_f_T_gate (per_second).
C ALGBRC(48) is f_T_infinity in component T_type_Ca_channel_f_T_gate (dimensionless).
C ALGBRC(57) is tau_f_T in component T_type_Ca_channel_f_T_gate (second).
C ALGBRC(60) is E_K in component Ca_independent_transient_outward_K_current (millivolt).
C CONSTS(18) is g_to in component Ca_independent_transient_outward_K_current (nanoS).
C STATES(10) is K_c in component cleft_space_ion_concentrations (millimolar).
C STATES(11) is K_i in component intracellular_ion_concentrations (millimolar).
C STATES(12) is r in component Ca_independent_transient_outward_K_current_r_gate (dimensionless).
C STATES(13) is s1 in component Ca_independent_transient_outward_K_current_s1_gate (dimensionless).
C STATES(14) is s2 in component Ca_independent_transient_outward_K_current_s2_gate (dimensionless).
C STATES(15) is s3 in component Ca_independent_transient_outward_K_current_s3_gate (dimensionless).
C ALGBRC(8) is alpha_r in component Ca_independent_transient_outward_K_current_r_gate (per_second).
C ALGBRC(23) is beta_r in component Ca_independent_transient_outward_K_current_r_gate (per_second).
C ALGBRC(49) is tau_r in component Ca_independent_transient_outward_K_current_r_gate (second).
C ALGBRC(38) is r_infinity in component Ca_independent_transient_outward_K_current_r_gate (dimensionless).
C ALGBRC(24) is tau_s1 in component Ca_independent_transient_outward_K_current_s1_gate (second).
C ALGBRC(9) is s1_infinity in component Ca_independent_transient_outward_K_current_s1_gate (dimensionless).
C ALGBRC(25) is tau_s2 in component Ca_independent_transient_outward_K_current_s2_gate (second).
C ALGBRC(10) is s2_infinity in component Ca_independent_transient_outward_K_current_s2_gate (dimensionless).
C ALGBRC(26) is tau_s3 in component Ca_independent_transient_outward_K_current_s3_gate (second).
C ALGBRC(11) is s3_infinity in component Ca_independent_transient_outward_K_current_s3_gate (dimensionless).
C CONSTS(19) is g_Ks in component delayed_rectifier_K_current (nanoS).
C CONSTS(20) is g_Kr in component delayed_rectifier_K_current (nanoS).
C STATES(16) is z in component delayed_rectifier_K_current_z_gate (dimensionless).
C STATES(17) is p_a in component delayed_rectifier_K_current_pa_gate (dimensionless).
C STATES(18) is p_i in component delayed_rectifier_K_current_pi_gate (dimensionless).
C ALGBRC(12) is alpha_z in component delayed_rectifier_K_current_z_gate (per_second).
C ALGBRC(27) is beta_z in component delayed_rectifier_K_current_z_gate (per_second).
C ALGBRC(50) is tau_z in component delayed_rectifier_K_current_z_gate (second).
C ALGBRC(39) is z_infinity in component delayed_rectifier_K_current_z_gate (dimensionless).
C ALGBRC(13) is alpha_p_a in component delayed_rectifier_K_current_pa_gate (per_second).
C ALGBRC(28) is beta_p_a in component delayed_rectifier_K_current_pa_gate (per_second).
C ALGBRC(51) is tau_p_a in component delayed_rectifier_K_current_pa_gate (second).
C ALGBRC(40) is p_a_infinity in component delayed_rectifier_K_current_pa_gate (dimensionless).
C ALGBRC(14) is alpha_p_i in component delayed_rectifier_K_current_pi_gate (per_second).
C ALGBRC(29) is beta_p_i in component delayed_rectifier_K_current_pi_gate (per_second).
C ALGBRC(52) is tau_p_i in component delayed_rectifier_K_current_pi_gate (second).
C ALGBRC(41) is p_i_infinity in component delayed_rectifier_K_current_pi_gate (dimensionless).
C CONSTS(21) is g_K1 in component inward_rectifier (nanoS).
C CONSTS(22) is KmK1 in component inward_rectifier (millimolar).
C CONSTS(23) is steepK1 in component inward_rectifier (dimensionless).
C CONSTS(24) is shiftK1 in component inward_rectifier (millivolt).
C CONSTS(25) is g_B_Na in component background_currents (nanoS).
C CONSTS(26) is g_B_Ca in component background_currents (nanoS).
C ALGBRC(67) is E_Ca in component background_currents (millivolt).
C CONSTS(27) is Ca_c in component cleft_space_ion_concentrations (millimolar).
C STATES(19) is Ca_i in component intracellular_ion_concentrations (millimolar).
C CONSTS(28) is k_NaK_K in component sodium_potassium_pump (millimolar).
C CONSTS(29) is k_NaK_Na in component sodium_potassium_pump (millimolar).
C CONSTS(30) is i_NaK_max in component sodium_potassium_pump (picoA).
C CONSTS(31) is i_CaP_max in component sarcolemmal_calcium_pump_current (picoA).
C CONSTS(32) is k_CaP in component sarcolemmal_calcium_pump_current (millimolar).
C CONSTS(33) is k_NaCa in component Na_Ca_ion_exchanger_current (picoA_per_millimolar_4).
C CONSTS(34) is d_NaCa in component Na_Ca_ion_exchanger_current (per_millimolar_4).
C CONSTS(35) is gamma in component Na_Ca_ion_exchanger_current (dimensionless).
C CONSTS(36) is Vol_i in component intracellular_ion_concentrations (nanolitre).
C CONSTS(37) is Vol_Ca in component intracellular_ion_concentrations (nanolitre).
C ALGBRC(76) is i_up in component Ca_handling_by_the_SR (picoA).
C ALGBRC(78) is i_rel in component Ca_handling_by_the_SR (picoA).
C ALGBRC(73) is dOCdt in component intracellular_Ca_buffering (per_second).
C ALGBRC(74) is dOTCdt in component intracellular_Ca_buffering (per_second).
C ALGBRC(75) is dOTMgCdt in component intracellular_Ca_buffering (per_second).
C STATES(20) is O_C in component intracellular_Ca_buffering (dimensionless).
C STATES(21) is O_TC in component intracellular_Ca_buffering (dimensionless).
C STATES(22) is O_TMgC in component intracellular_Ca_buffering (dimensionless).
C STATES(23) is O_TMgMg in component intracellular_Ca_buffering (dimensionless).
C CONSTS(38) is Mg_i in component intracellular_Ca_buffering (millimolar).
C CONSTS(39) is Vol_c in component cleft_space_ion_concentrations (nanolitre).
C ALGBRC(77) is i_tr in component Ca_handling_by_the_SR (picoA).
C CONSTS(40) is I_up_max in component Ca_handling_by_the_SR (picoA).
C CONSTS(41) is k_cyca in component Ca_handling_by_the_SR (millimolar).
C CONSTS(42) is k_srca in component Ca_handling_by_the_SR (millimolar).
C CONSTS(43) is k_xcs in component Ca_handling_by_the_SR (dimensionless).
C CONSTS(44) is alpha_rel in component Ca_handling_by_the_SR (picoA_per_millimolar).
C STATES(24) is Ca_rel in component Ca_handling_by_the_SR (millimolar).
C STATES(25) is Ca_up in component Ca_handling_by_the_SR (millimolar).
C CONSTS(45) is Vol_up in component Ca_handling_by_the_SR (nanolitre).
C CONSTS(46) is Vol_rel in component Ca_handling_by_the_SR (nanolitre).
C ALGBRC(15) is r_act in component Ca_handling_by_the_SR (per_second).
C ALGBRC(30) is r_inact in component Ca_handling_by_the_SR (per_second).
C STATES(26) is O_Calse in component Ca_handling_by_the_SR (dimensionless).
C STATES(27) is F1 in component Ca_handling_by_the_SR (dimensionless).
C STATES(28) is F2 in component Ca_handling_by_the_SR (dimensionless).
C STATES(29) is F3 in component Ca_handling_by_the_SR (dimensionless).
C CONSTS(47) is tau_tr in component Ca_handling_by_the_SR (second).
C CONSTS(48) is k_rel in component Ca_handling_by_the_SR (millimolar).
C CONSTS(49) is k_F3 in component Ca_handling_by_the_SR (per_second).
C RATES(1) is d/dt V in component membrane (millivolt).
C RATES(3) is d/dt m in component sodium_current_m_gate (dimensionless).
C RATES(4) is d/dt h1 in component sodium_current_h1_gate (dimensionless).
C RATES(5) is d/dt h2 in component sodium_current_h2_gate (dimensionless).
C RATES(6) is d/dt d_L in component L_type_Ca_channel_d_L_gate (dimensionless).
C RATES(7) is d/dt f_L in component L_type_Ca_channel_f_L_gate (dimensionless).
C RATES(8) is d/dt d_T in component T_type_Ca_channel_d_T_gate (dimensionless).
C RATES(9) is d/dt f_T in component T_type_Ca_channel_f_T_gate (dimensionless).
C RATES(12) is d/dt r in component Ca_independent_transient_outward_K_current_r_gate (dimensionless).
C RATES(13) is d/dt s1 in component Ca_independent_transient_outward_K_current_s1_gate (dimensionless).
C RATES(14) is d/dt s2 in component Ca_independent_transient_outward_K_current_s2_gate (dimensionless).
C RATES(15) is d/dt s3 in component Ca_independent_transient_outward_K_current_s3_gate (dimensionless).
C RATES(16) is d/dt z in component delayed_rectifier_K_current_z_gate (dimensionless).
C RATES(17) is d/dt p_a in component delayed_rectifier_K_current_pa_gate (dimensionless).
C RATES(18) is d/dt p_i in component delayed_rectifier_K_current_pi_gate (dimensionless).
C RATES(2) is d/dt Na_i in component intracellular_ion_concentrations (millimolar).
C RATES(11) is d/dt K_i in component intracellular_ion_concentrations (millimolar).
C RATES(19) is d/dt Ca_i in component intracellular_ion_concentrations (millimolar).
C RATES(20) is d/dt O_C in component intracellular_Ca_buffering (dimensionless).
C RATES(21) is d/dt O_TC in component intracellular_Ca_buffering (dimensionless).
C RATES(22) is d/dt O_TMgC in component intracellular_Ca_buffering (dimensionless).
C RATES(23) is d/dt O_TMgMg in component intracellular_Ca_buffering (dimensionless).
C RATES(10) is d/dt K_c in component cleft_space_ion_concentrations (millimolar).
C RATES(26) is d/dt O_Calse in component Ca_handling_by_the_SR (dimensionless).
C RATES(24) is d/dt Ca_rel in component Ca_handling_by_the_SR (millimolar).
C RATES(25) is d/dt Ca_up in component Ca_handling_by_the_SR (millimolar).
C RATES(27) is d/dt F1 in component Ca_handling_by_the_SR (dimensionless).
C RATES(28) is d/dt F2 in component Ca_handling_by_the_SR (dimensionless).
C RATES(29) is d/dt F3 in component Ca_handling_by_the_SR (dimensionless).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 1
      CONSTS(2) = 0
      STATES(1) = -80
      CONSTS(3) = 8314
      CONSTS(4) = 308
      CONSTS(5) = 96487
      CONSTS(6) = 0.00005
      CONSTS(7) = 0.01
      CONSTS(8) = 100
      CONSTS(9) = 0.5
      CONSTS(10) = 0.0002
      CONSTS(11) = -20
      CONSTS(12) = 0.0000014
      CONSTS(13) = 140
      STATES(2) = 8.4
      STATES(3) = 0.01309
      STATES(4) = 0.706
      STATES(5) = 0.61493
      CONSTS(14) = 0.004
      CONSTS(15) = 50
      STATES(6) = 0.00003
      STATES(7) = 0.99981
      CONSTS(16) = 0.006
      CONSTS(17) = 38
      STATES(8) = 0.00046
      STATES(9) = 0.30752
      CONSTS(18) = 0.050002
      STATES(10) = 5
      STATES(11) = 100
      STATES(12) = 0.00006
      STATES(13) = 0.5753
      STATES(14) = 0.39871
      STATES(15) = 0.57363
      CONSTS(19) = 0.0025
      CONSTS(20) = 0.0035
      STATES(16) = 0.02032
      STATES(17) = 0.00016
      STATES(18) = 0.76898
      CONSTS(21) = 0.00508
      CONSTS(22) = 0.59
      CONSTS(23) = 1.393
      CONSTS(24) = -3.6
      CONSTS(25) = 6.4e-5
      CONSTS(26) = 3.1e-5
      CONSTS(27) = 2.5
      STATES(19) = 0.000071
      CONSTS(28) = 1
      CONSTS(29) = 11
      CONSTS(30) = 0.06441
      CONSTS(31) = 0.009509
      CONSTS(32) = 2e-4
      CONSTS(33) = 2e-5
      CONSTS(34) = 3e-4
      CONSTS(35) = 0.45
      CONSTS(36) = 1.26e-5
      CONSTS(37) = 5.884e-6
      STATES(20) = 0.029108
      STATES(21) = 0.014071
      STATES(22) = 0.214036
      STATES(23) = 0.693565
      CONSTS(38) = 2.5
      CONSTS(39) = 0.0000025
      CONSTS(40) = 2.8
      CONSTS(41) = 0.0003
      CONSTS(42) = 0.5
      CONSTS(43) = 0.4
      CONSTS(44) = 200
      STATES(24) = 0.726776
      STATES(25) = 0.730866
      CONSTS(45) = 3.969e-7
      CONSTS(46) = 4.4e-8
      STATES(26) = 0.465921
      STATES(27) = 0.288039
      STATES(28) = 0.002262
      STATES(29) = 0.612697
      CONSTS(47) = 0.01
      CONSTS(48) = 0.0003
      CONSTS(49) = 0.815
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(23) =  2000.00*CONSTS(38)*((1.00000 - STATES(22)) - STATES(23)) -  666.000*STATES(23)
      ALGBRC(15) =  240.000*EXP( 0.0800000*(STATES(1) - 20.0000))+ 203.800*STATES(19)/(STATES(19)+CONSTS(48)) ** 4.00000
      RATES(27) =  CONSTS(49)*STATES(29) -  ALGBRC(15)*STATES(27)
      ALGBRC(24) = 0.546600/(1.00000+EXP((STATES(1)+32.8000)/0.100000))+0.0204000
      ALGBRC(9) = 1.00000/(1.00000+EXP((STATES(1)+28.2900)/7.06000))
      RATES(13) = (ALGBRC(9) - STATES(13))/ALGBRC(24)
      ALGBRC(25) = 5.75000/(1.00000+EXP((STATES(1)+32.8000)/0.100000))+0.450000/(1.00000+EXP((STATES(1) - 13.5400)/- 13.9700))
      ALGBRC(10) = 1.00000/(1.00000+EXP((STATES(1)+28.2900)/7.06000))
      RATES(14) = (ALGBRC(10) - STATES(14))/ALGBRC(25)
      ALGBRC(26) = 7.50000/(1.00000+EXP((STATES(1)+23.0000)/0.500000))+0.500000
      ALGBRC(11) = (1.00000/(1.00000+EXP((STATES(1)+50.6700)/27.3800))+0.666000)/1.66600
      RATES(15) = (ALGBRC(11) - STATES(15))/ALGBRC(26)
      ALGBRC(30) = 33.9600+ 339.600*STATES(19)/(STATES(19)+CONSTS(48)) ** 4.00000
      RATES(28) =  ALGBRC(15)*STATES(27) -  ALGBRC(30)*STATES(28)
      RATES(29) =  STATES(28)*ALGBRC(30) -  CONSTS(49)*STATES(29)
      ALGBRC(2) = STATES(1)+44.4000
      ALGBRC(17) = ( - 460.000*ALGBRC(2))/(EXP(ALGBRC(2)/- 12.6730) - 1.00000)
      ALGBRC(32) =  18400.0*EXP(ALGBRC(2)/- 12.6730)
      RATES(3) =  ALGBRC(17)*(1.00000 - STATES(3)) -  ALGBRC(32)*STATES(3)
      ALGBRC(3) =  44.9000*EXP((STATES(1)+66.9000)/- 5.57000)
      ALGBRC(18) = 1491.00/(1.00000+ 323.300*EXP((STATES(1)+94.6000)/- 12.9000))
      ALGBRC(33) = ALGBRC(3)/(ALGBRC(3)+ALGBRC(18))
      ALGBRC(43) = 0.0300000/(1.00000+EXP((STATES(1)+40.0000)/6.00000))+0.000150000
      RATES(4) = (ALGBRC(33) - STATES(4))/ALGBRC(43)
      ALGBRC(44) = 0.120000/(1.00000+EXP((STATES(1)+60.0000)/2.00000))+0.000450000
      RATES(5) = (ALGBRC(33) - STATES(5))/ALGBRC(44)
      ALGBRC(8) =  386.600*EXP(STATES(1)/12.0000)
      ALGBRC(23) =  8.01100*EXP(STATES(1)/- 7.20000)
      ALGBRC(49) = 1.00000/(ALGBRC(8)+ALGBRC(23))+0.000400000
      ALGBRC(38) = 1.00000/(1.00000+EXP((STATES(1)+15.0000)/- 5.63300))
      RATES(12) = (ALGBRC(38) - STATES(12))/ALGBRC(49)
      ALGBRC(12) =  1.66000*EXP(STATES(1)/69.4520)
      ALGBRC(27) =  0.300000*EXP(STATES(1)/- 21.8260)
      ALGBRC(50) = 1.00000/(ALGBRC(12)+ALGBRC(27))+0.0600000
      ALGBRC(39) = 1.00000/(1.00000+EXP((STATES(1) - 0.900000)/- 13.8000))
      RATES(16) = (ALGBRC(39) - STATES(16))/ALGBRC(50)
      ALGBRC(13) =  9.00000*EXP(STATES(1)/25.3710)
      ALGBRC(28) =  1.30000*EXP(STATES(1)/- 13.0260)
      ALGBRC(51) = 1.00000/(ALGBRC(13)+ALGBRC(28))
      ALGBRC(40) = 1.00000/(1.00000+EXP((STATES(1)+5.10000)/- 7.40000))
      RATES(17) = (ALGBRC(40) - STATES(17))/ALGBRC(51)
      ALGBRC(14) =  100.000*EXP(STATES(1)/- 54.6450)
      ALGBRC(29) =  656.000*EXP(STATES(1)/106.157)
      ALGBRC(52) = 1.00000/(ALGBRC(14)+ALGBRC(29))
      ALGBRC(41) = 1.00000/(1.00000+EXP((STATES(1)+47.3921)/18.6603))
      RATES(18) = (ALGBRC(41) - STATES(18))/ALGBRC(52)
      ALGBRC(5) = STATES(1)+18.0000
      ALGBRC(20) = ( 8.49000*ALGBRC(5))/(EXP(ALGBRC(5)/4.00000) - 1.00000)
      ALGBRC(35) = 67.9220/(1.00000+EXP(ALGBRC(5)/- 4.00000))
      ALGBRC(46) = ALGBRC(20)/(ALGBRC(20)+ALGBRC(35))
      ALGBRC(55) = 1.00000/(ALGBRC(20)+ALGBRC(35))
      RATES(7) = (ALGBRC(46) - STATES(7))/ALGBRC(55)
      ALGBRC(6) = STATES(1)+23.3000
      ALGBRC(47) = 1.00000/(1.00000+EXP((ALGBRC(6) - 0.300000)/- 6.10000))
      ALGBRC(21) =  674.173*EXP(ALGBRC(6)/30.0000)
      ALGBRC(36) =  674.173*EXP(ALGBRC(6)/- 30.0000)
      ALGBRC(56) = 1.00000/(ALGBRC(21)+ALGBRC(36))
      RATES(8) = (ALGBRC(47) - STATES(8))/ALGBRC(56)
      ALGBRC(7) = STATES(1)+75.0000
      ALGBRC(22) =  9.63700*EXP(ALGBRC(7)/- 83.3000)
      ALGBRC(37) =  9.63700*EXP(ALGBRC(7)/15.3800)
      ALGBRC(48) = ALGBRC(22)/(ALGBRC(22)+ALGBRC(37))
      ALGBRC(57) = 1.00000/(ALGBRC(22)+ALGBRC(37))
      RATES(9) = (ALGBRC(48) - STATES(9))/ALGBRC(57)
      ALGBRC(34) = STATES(1)+10.0000
      ALGBRC(59) = 1.00000/(1.00000+EXP((ALGBRC(34)+0.950000)/- 6.60000))
      ALGBRC(4) = STATES(1)+45.0000
      ALGBRC(45) = ( - 16.7200*ALGBRC(4))/(EXP(ALGBRC(4)/- 2.50000) - 1.00000)+( - 50.0000*ALGBRC(34))/(EXP(ALGBRC(34)/- 4.80800) - 1.00000)
      ALGBRC(19) = STATES(1)+5.00000
      ALGBRC(54) = ( 4.48000*ALGBRC(19))/(EXP(ALGBRC(19)/2.50000) - 1.00000)
      ALGBRC(61) = 1.00000/(ALGBRC(45)+ALGBRC(54))
      RATES(6) = (ALGBRC(59) - STATES(6))/ALGBRC(61)
      ALGBRC(60) =  (( CONSTS(3)*CONSTS(4))/CONSTS(5))*log(STATES(10)/STATES(11))
      ALGBRC(62) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  0.200000*CONSTS(18)*STATES(12)*( 0.590000*STATES(13) ** 3.00000+ 0.410000*STATES(14) ** 3.00000)*( 0.600000*STATES(15) ** 6.00000+0.400000)*(STATES(1) - ALGBRC(60)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  0.350000*CONSTS(18)*STATES(12)*( 0.590000*STATES(13) ** 3.00000+ 0.410000*STATES(14) ** 3.00000)*( 0.600000*STATES(15) ** 6.00000+0.400000)*(STATES(1) - ALGBRC(60)),  CONSTS(18)*STATES(12)*( 0.590000*STATES(13) ** 3.00000+ 0.410000*STATES(14) ** 3.00000)*( 0.600000*STATES(15) ** 6.00000+0.400000)*(STATES(1) - ALGBRC(60)))
      ALGBRC(63) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  0.00140000*(STATES(1)+70.0000), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  0.00240000*(STATES(1)+70.0000),  0.00100000*(STATES(1)+70.0000))
      ALGBRC(66) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000, ( 2.00000*CONSTS(21)*(STATES(1) - ALGBRC(60))*STATES(10)/(STATES(10)+CONSTS(22)) ** 3.00000*1.00000)/(1.00000+EXP(( CONSTS(23)*CONSTS(5)*((STATES(1) - ALGBRC(60)) - CONSTS(24)))/( CONSTS(3)*CONSTS(4)))), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000, ( 2.50000*CONSTS(21)*(STATES(1) - ALGBRC(60))*STATES(10)/(STATES(10)+CONSTS(22)) ** 3.00000*1.00000)/(1.00000+EXP(( CONSTS(23)*CONSTS(5)*((STATES(1) - ALGBRC(60)) - CONSTS(24)))/( CONSTS(3)*CONSTS(4)))), ( CONSTS(21)*(STATES(1) - ALGBRC(60))*STATES(10)/(STATES(10)+CONSTS(22)) ** 3.00000*1.00000)/(1.00000+EXP(( CONSTS(23)*CONSTS(5)*((STATES(1) - ALGBRC(60)) - CONSTS(24)))/( CONSTS(3)*CONSTS(4)))))
      ALGBRC(65) =  CONSTS(20)*STATES(17)*STATES(18)*(STATES(1) - ALGBRC(60))
      ALGBRC(64) =  CONSTS(19)*STATES(16)*(STATES(1) - ALGBRC(60))
      ALGBRC(70) = ( (( (( CONSTS(30)*STATES(10))/(STATES(10)+CONSTS(28)))*STATES(2) ** 1.50000)/(STATES(2) ** 1.50000+CONSTS(29) ** 1.50000))*1.60000)/(1.50000+EXP((STATES(1)+60.0000)/- 40.0000))
      RATES(11) = - ((ALGBRC(62)+ALGBRC(63)+ALGBRC(66)+ALGBRC(65)+ALGBRC(64)) -  2.00000*ALGBRC(70))/( CONSTS(36)*CONSTS(5))
      RATES(10) = ((ALGBRC(62)+ALGBRC(63)+ALGBRC(66)+ALGBRC(65)+ALGBRC(64)) -  2.00000*ALGBRC(70))/( CONSTS(39)*CONSTS(5))
      ALGBRC(16) =  (( CONSTS(3)*CONSTS(4))/CONSTS(5))*log(CONSTS(13)/STATES(2))
      ALGBRC(31) = ( (( CONSTS(12)*STATES(3) ** 3.00000*( 0.635000*STATES(4)+ 0.365000*STATES(5))*CONSTS(13)*STATES(1)*CONSTS(5) ** 2.00000)/( CONSTS(3)*CONSTS(4)))*(EXP(( (STATES(1) - ALGBRC(16))*CONSTS(5))/( CONSTS(3)*CONSTS(4))) - 1.00000))/(EXP(( STATES(1)*CONSTS(5))/( CONSTS(3)*CONSTS(4))) - 1.00000)
      ALGBRC(42) = 1.00000/(1.00000+EXP((STATES(1) - 23.0000)/- 12.0000))
      ALGBRC(53) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  1.80000*CONSTS(14)*( STATES(6)*STATES(7)+ALGBRC(42))*(STATES(1) - CONSTS(15)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  2.10000*CONSTS(14)*( STATES(6)*STATES(7)+ALGBRC(42))*(STATES(1) - CONSTS(15)),  CONSTS(14)*( STATES(6)*STATES(7)+ALGBRC(42))*(STATES(1) - CONSTS(15)))
      ALGBRC(58) =  CONSTS(16)*STATES(8)*STATES(9)*(STATES(1) - CONSTS(17))
      ALGBRC(68) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  2.00000e-05*(STATES(1) - ALGBRC(16)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  3.00000e-05*(STATES(1) - ALGBRC(16)),  CONSTS(25)*(STATES(1) - ALGBRC(16)))
      ALGBRC(67) =  (( CONSTS(3)*CONSTS(4))/( 2.00000*CONSTS(5)))*log(CONSTS(27)/STATES(19))
      ALGBRC(69) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  2.00000e-05*(STATES(1) - ALGBRC(67)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  3.00000e-05*(STATES(1) - ALGBRC(67)),  CONSTS(26)*(STATES(1) - ALGBRC(67)))
      ALGBRC(71) = ( CONSTS(31)*STATES(19))/(STATES(19)+CONSTS(32))
      ALGBRC(72) = ( CONSTS(33)*( STATES(2) ** 3.00000*CONSTS(27)*EXP(( CONSTS(35)*CONSTS(5)*STATES(1))/( CONSTS(3)*CONSTS(4))) -  CONSTS(13) ** 3.00000*STATES(19)*EXP(( (CONSTS(35) - 1.00000)*STATES(1)*CONSTS(5))/( CONSTS(3)*CONSTS(4)))))/(1.00000+ CONSTS(34)*( CONSTS(13) ** 3.00000*STATES(19)+ STATES(2) ** 3.00000*CONSTS(27)))
      ALGBRC(1) = TERNRY(VOI.GE.CONSTS(7).AND.VOI.LE.CONSTS(8).AND.(VOI - CONSTS(7)) -  INT((VOI - CONSTS(7))/CONSTS(9))*CONSTS(9).LE.CONSTS(10), CONSTS(11), 0.00000)
      RATES(1) =  (- 1.00000/CONSTS(6))*(ALGBRC(65)+ALGBRC(64)+ALGBRC(31)+ALGBRC(53)+ALGBRC(58)+ALGBRC(62)+ALGBRC(63)+ALGBRC(66)+ALGBRC(68)+ALGBRC(69)+ALGBRC(70)+ALGBRC(71)+ALGBRC(72)+ALGBRC(1))
      RATES(2) = - (ALGBRC(31)+ALGBRC(68)+ 3.00000*ALGBRC(70)+ 3.00000*ALGBRC(72))/( CONSTS(36)*CONSTS(5))
      ALGBRC(73) =  200000.*STATES(19)*(1.00000 - STATES(20)) -  476.000*STATES(20)
      RATES(20) = ALGBRC(73)
      ALGBRC(74) =  78400.0*STATES(19)*(1.00000 - STATES(21)) -  392.000*STATES(21)
      RATES(21) = ALGBRC(74)
      RATES(26) =  480.000*STATES(24)*(1.00000 - STATES(26)) -  400.000*STATES(26)
      ALGBRC(75) =  200000.*STATES(19)*((1.00000 - STATES(22)) - STATES(23)) -  6.60000*STATES(22)
      RATES(22) = ALGBRC(75)
      ALGBRC(76) = ( CONSTS(40)*(STATES(19)/CONSTS(41) - ( CONSTS(43) ** 2.00000*STATES(25))/CONSTS(42)))/((STATES(19)+CONSTS(41))/CONSTS(41)+( CONSTS(43)*(STATES(25)+CONSTS(42)))/CONSTS(42))
      ALGBRC(77) = ( (STATES(25) - STATES(24))*2.00000*CONSTS(5)*CONSTS(46))/CONSTS(47)
      RATES(25) = (ALGBRC(76) - ALGBRC(77))/( 2.00000*CONSTS(45)*CONSTS(5))
      ALGBRC(78) =  CONSTS(44)*STATES(28)/(STATES(28)+0.250000) ** 2.00000*(STATES(24) - STATES(19))
      RATES(19) = - ((((ALGBRC(53)+ALGBRC(58)+ALGBRC(69)+ALGBRC(71)) -  2.00000*ALGBRC(72))+ALGBRC(76)) - ALGBRC(78))/( 2.00000*CONSTS(37)*CONSTS(5)) - ( 0.0800000*ALGBRC(74)+ 0.160000*ALGBRC(75)+ 0.0450000*ALGBRC(73))
      RATES(24) = (ALGBRC(77) - ALGBRC(78))/( 2.00000*CONSTS(46)*CONSTS(5)) -  31.0000*RATES(26)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(15) =  240.000*EXP( 0.0800000*(STATES(1) - 20.0000))+ 203.800*STATES(19)/(STATES(19)+CONSTS(48)) ** 4.00000
      ALGBRC(24) = 0.546600/(1.00000+EXP((STATES(1)+32.8000)/0.100000))+0.0204000
      ALGBRC(9) = 1.00000/(1.00000+EXP((STATES(1)+28.2900)/7.06000))
      ALGBRC(25) = 5.75000/(1.00000+EXP((STATES(1)+32.8000)/0.100000))+0.450000/(1.00000+EXP((STATES(1) - 13.5400)/- 13.9700))
      ALGBRC(10) = 1.00000/(1.00000+EXP((STATES(1)+28.2900)/7.06000))
      ALGBRC(26) = 7.50000/(1.00000+EXP((STATES(1)+23.0000)/0.500000))+0.500000
      ALGBRC(11) = (1.00000/(1.00000+EXP((STATES(1)+50.6700)/27.3800))+0.666000)/1.66600
      ALGBRC(30) = 33.9600+ 339.600*STATES(19)/(STATES(19)+CONSTS(48)) ** 4.00000
      ALGBRC(2) = STATES(1)+44.4000
      ALGBRC(17) = ( - 460.000*ALGBRC(2))/(EXP(ALGBRC(2)/- 12.6730) - 1.00000)
      ALGBRC(32) =  18400.0*EXP(ALGBRC(2)/- 12.6730)
      ALGBRC(3) =  44.9000*EXP((STATES(1)+66.9000)/- 5.57000)
      ALGBRC(18) = 1491.00/(1.00000+ 323.300*EXP((STATES(1)+94.6000)/- 12.9000))
      ALGBRC(33) = ALGBRC(3)/(ALGBRC(3)+ALGBRC(18))
      ALGBRC(43) = 0.0300000/(1.00000+EXP((STATES(1)+40.0000)/6.00000))+0.000150000
      ALGBRC(44) = 0.120000/(1.00000+EXP((STATES(1)+60.0000)/2.00000))+0.000450000
      ALGBRC(8) =  386.600*EXP(STATES(1)/12.0000)
      ALGBRC(23) =  8.01100*EXP(STATES(1)/- 7.20000)
      ALGBRC(49) = 1.00000/(ALGBRC(8)+ALGBRC(23))+0.000400000
      ALGBRC(38) = 1.00000/(1.00000+EXP((STATES(1)+15.0000)/- 5.63300))
      ALGBRC(12) =  1.66000*EXP(STATES(1)/69.4520)
      ALGBRC(27) =  0.300000*EXP(STATES(1)/- 21.8260)
      ALGBRC(50) = 1.00000/(ALGBRC(12)+ALGBRC(27))+0.0600000
      ALGBRC(39) = 1.00000/(1.00000+EXP((STATES(1) - 0.900000)/- 13.8000))
      ALGBRC(13) =  9.00000*EXP(STATES(1)/25.3710)
      ALGBRC(28) =  1.30000*EXP(STATES(1)/- 13.0260)
      ALGBRC(51) = 1.00000/(ALGBRC(13)+ALGBRC(28))
      ALGBRC(40) = 1.00000/(1.00000+EXP((STATES(1)+5.10000)/- 7.40000))
      ALGBRC(14) =  100.000*EXP(STATES(1)/- 54.6450)
      ALGBRC(29) =  656.000*EXP(STATES(1)/106.157)
      ALGBRC(52) = 1.00000/(ALGBRC(14)+ALGBRC(29))
      ALGBRC(41) = 1.00000/(1.00000+EXP((STATES(1)+47.3921)/18.6603))
      ALGBRC(5) = STATES(1)+18.0000
      ALGBRC(20) = ( 8.49000*ALGBRC(5))/(EXP(ALGBRC(5)/4.00000) - 1.00000)
      ALGBRC(35) = 67.9220/(1.00000+EXP(ALGBRC(5)/- 4.00000))
      ALGBRC(46) = ALGBRC(20)/(ALGBRC(20)+ALGBRC(35))
      ALGBRC(55) = 1.00000/(ALGBRC(20)+ALGBRC(35))
      ALGBRC(6) = STATES(1)+23.3000
      ALGBRC(47) = 1.00000/(1.00000+EXP((ALGBRC(6) - 0.300000)/- 6.10000))
      ALGBRC(21) =  674.173*EXP(ALGBRC(6)/30.0000)
      ALGBRC(36) =  674.173*EXP(ALGBRC(6)/- 30.0000)
      ALGBRC(56) = 1.00000/(ALGBRC(21)+ALGBRC(36))
      ALGBRC(7) = STATES(1)+75.0000
      ALGBRC(22) =  9.63700*EXP(ALGBRC(7)/- 83.3000)
      ALGBRC(37) =  9.63700*EXP(ALGBRC(7)/15.3800)
      ALGBRC(48) = ALGBRC(22)/(ALGBRC(22)+ALGBRC(37))
      ALGBRC(57) = 1.00000/(ALGBRC(22)+ALGBRC(37))
      ALGBRC(34) = STATES(1)+10.0000
      ALGBRC(59) = 1.00000/(1.00000+EXP((ALGBRC(34)+0.950000)/- 6.60000))
      ALGBRC(4) = STATES(1)+45.0000
      ALGBRC(45) = ( - 16.7200*ALGBRC(4))/(EXP(ALGBRC(4)/- 2.50000) - 1.00000)+( - 50.0000*ALGBRC(34))/(EXP(ALGBRC(34)/- 4.80800) - 1.00000)
      ALGBRC(19) = STATES(1)+5.00000
      ALGBRC(54) = ( 4.48000*ALGBRC(19))/(EXP(ALGBRC(19)/2.50000) - 1.00000)
      ALGBRC(61) = 1.00000/(ALGBRC(45)+ALGBRC(54))
      ALGBRC(60) =  (( CONSTS(3)*CONSTS(4))/CONSTS(5))*log(STATES(10)/STATES(11))
      ALGBRC(62) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  0.200000*CONSTS(18)*STATES(12)*( 0.590000*STATES(13) ** 3.00000+ 0.410000*STATES(14) ** 3.00000)*( 0.600000*STATES(15) ** 6.00000+0.400000)*(STATES(1) - ALGBRC(60)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  0.350000*CONSTS(18)*STATES(12)*( 0.590000*STATES(13) ** 3.00000+ 0.410000*STATES(14) ** 3.00000)*( 0.600000*STATES(15) ** 6.00000+0.400000)*(STATES(1) - ALGBRC(60)),  CONSTS(18)*STATES(12)*( 0.590000*STATES(13) ** 3.00000+ 0.410000*STATES(14) ** 3.00000)*( 0.600000*STATES(15) ** 6.00000+0.400000)*(STATES(1) - ALGBRC(60)))
      ALGBRC(63) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  0.00140000*(STATES(1)+70.0000), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  0.00240000*(STATES(1)+70.0000),  0.00100000*(STATES(1)+70.0000))
      ALGBRC(66) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000, ( 2.00000*CONSTS(21)*(STATES(1) - ALGBRC(60))*STATES(10)/(STATES(10)+CONSTS(22)) ** 3.00000*1.00000)/(1.00000+EXP(( CONSTS(23)*CONSTS(5)*((STATES(1) - ALGBRC(60)) - CONSTS(24)))/( CONSTS(3)*CONSTS(4)))), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000, ( 2.50000*CONSTS(21)*(STATES(1) - ALGBRC(60))*STATES(10)/(STATES(10)+CONSTS(22)) ** 3.00000*1.00000)/(1.00000+EXP(( CONSTS(23)*CONSTS(5)*((STATES(1) - ALGBRC(60)) - CONSTS(24)))/( CONSTS(3)*CONSTS(4)))), ( CONSTS(21)*(STATES(1) - ALGBRC(60))*STATES(10)/(STATES(10)+CONSTS(22)) ** 3.00000*1.00000)/(1.00000+EXP(( CONSTS(23)*CONSTS(5)*((STATES(1) - ALGBRC(60)) - CONSTS(24)))/( CONSTS(3)*CONSTS(4)))))
      ALGBRC(65) =  CONSTS(20)*STATES(17)*STATES(18)*(STATES(1) - ALGBRC(60))
      ALGBRC(64) =  CONSTS(19)*STATES(16)*(STATES(1) - ALGBRC(60))
      ALGBRC(70) = ( (( (( CONSTS(30)*STATES(10))/(STATES(10)+CONSTS(28)))*STATES(2) ** 1.50000)/(STATES(2) ** 1.50000+CONSTS(29) ** 1.50000))*1.60000)/(1.50000+EXP((STATES(1)+60.0000)/- 40.0000))
      ALGBRC(16) =  (( CONSTS(3)*CONSTS(4))/CONSTS(5))*log(CONSTS(13)/STATES(2))
      ALGBRC(31) = ( (( CONSTS(12)*STATES(3) ** 3.00000*( 0.635000*STATES(4)+ 0.365000*STATES(5))*CONSTS(13)*STATES(1)*CONSTS(5) ** 2.00000)/( CONSTS(3)*CONSTS(4)))*(EXP(( (STATES(1) - ALGBRC(16))*CONSTS(5))/( CONSTS(3)*CONSTS(4))) - 1.00000))/(EXP(( STATES(1)*CONSTS(5))/( CONSTS(3)*CONSTS(4))) - 1.00000)
      ALGBRC(42) = 1.00000/(1.00000+EXP((STATES(1) - 23.0000)/- 12.0000))
      ALGBRC(53) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  1.80000*CONSTS(14)*( STATES(6)*STATES(7)+ALGBRC(42))*(STATES(1) - CONSTS(15)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  2.10000*CONSTS(14)*( STATES(6)*STATES(7)+ALGBRC(42))*(STATES(1) - CONSTS(15)),  CONSTS(14)*( STATES(6)*STATES(7)+ALGBRC(42))*(STATES(1) - CONSTS(15)))
      ALGBRC(58) =  CONSTS(16)*STATES(8)*STATES(9)*(STATES(1) - CONSTS(17))
      ALGBRC(68) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  2.00000e-05*(STATES(1) - ALGBRC(16)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  3.00000e-05*(STATES(1) - ALGBRC(16)),  CONSTS(25)*(STATES(1) - ALGBRC(16)))
      ALGBRC(67) =  (( CONSTS(3)*CONSTS(4))/( 2.00000*CONSTS(5)))*log(CONSTS(27)/STATES(19))
      ALGBRC(69) = TERNRY(CONSTS(1).EQ.1.00000.AND.CONSTS(2).EQ.0.00000,  2.00000e-05*(STATES(1) - ALGBRC(67)), TERNRY(CONSTS(1).EQ.0.00000.AND.CONSTS(2).EQ.1.00000,  3.00000e-05*(STATES(1) - ALGBRC(67)),  CONSTS(26)*(STATES(1) - ALGBRC(67)))
      ALGBRC(71) = ( CONSTS(31)*STATES(19))/(STATES(19)+CONSTS(32))
      ALGBRC(72) = ( CONSTS(33)*( STATES(2) ** 3.00000*CONSTS(27)*EXP(( CONSTS(35)*CONSTS(5)*STATES(1))/( CONSTS(3)*CONSTS(4))) -  CONSTS(13) ** 3.00000*STATES(19)*EXP(( (CONSTS(35) - 1.00000)*STATES(1)*CONSTS(5))/( CONSTS(3)*CONSTS(4)))))/(1.00000+ CONSTS(34)*( CONSTS(13) ** 3.00000*STATES(19)+ STATES(2) ** 3.00000*CONSTS(27)))
      ALGBRC(1) = TERNRY(VOI.GE.CONSTS(7).AND.VOI.LE.CONSTS(8).AND.(VOI - CONSTS(7)) -  INT((VOI - CONSTS(7))/CONSTS(9))*CONSTS(9).LE.CONSTS(10), CONSTS(11), 0.00000)
      ALGBRC(73) =  200000.*STATES(19)*(1.00000 - STATES(20)) -  476.000*STATES(20)
      ALGBRC(74) =  78400.0*STATES(19)*(1.00000 - STATES(21)) -  392.000*STATES(21)
      ALGBRC(75) =  200000.*STATES(19)*((1.00000 - STATES(22)) - STATES(23)) -  6.60000*STATES(22)
      ALGBRC(76) = ( CONSTS(40)*(STATES(19)/CONSTS(41) - ( CONSTS(43) ** 2.00000*STATES(25))/CONSTS(42)))/((STATES(19)+CONSTS(41))/CONSTS(41)+( CONSTS(43)*(STATES(25)+CONSTS(42)))/CONSTS(42))
      ALGBRC(77) = ( (STATES(25) - STATES(24))*2.00000*CONSTS(5)*CONSTS(46))/CONSTS(47)
      ALGBRC(78) =  CONSTS(44)*STATES(28)/(STATES(28)+0.250000) ** 2.00000*(STATES(24) - STATES(19))
      RETURN
      END
      REAL FUNCTION TERNRY(TEST, VALA, VALB)
      LOGICAL TEST
      REAL VALA, VALB
      IF (TEST) THEN
        TERNRY = VALA
      ELSE
        TERNRY = VALB
      ENDIF
      RETURN
      END