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 120 entries in the algebraic variable array.
C There are a total of 41 entries in each of the rate and state variable arrays.
C There are a total of 137 entries in the constant variable array.
C
C
C CONSTS(1) is Bmax_CaM in component buffca (mM).
C CONSTS(129) is Bmax_SLhighj in component buffca (mM).
C CONSTS(134) is Bmax_SLhighsl in component buffca (mM).
C CONSTS(130) is Bmax_SLlowj in component buffca (mM).
C CONSTS(135) is Bmax_SLlowsl in component buffca (mM).
C CONSTS(2) is Bmax_SR in component buffca (mM).
C CONSTS(3) is Bmax_TnChigh in component buffca (mM).
C CONSTS(4) is Bmax_TnClow in component buffca (mM).
C CONSTS(5) is Bmax_myosin in component buffca (mM).
C STATES(1) is CaM in component buffca (mM).
C ALGBRC(36) is J_CaB_cytosol in component buffca (mM_per_ms).
C ALGBRC(34) is J_CaB_jntion in component buffca (mM_per_ms).
C ALGBRC(35) is J_CaB_sl in component buffca (mM_per_ms).
C STATES(2) is Myoc in component buffca (mM).
C STATES(3) is Myom in component buffca (mM).
C STATES(4) is SLH_jn in component buffca (mM).
C STATES(5) is SLH_sl in component buffca (mM).
C STATES(6) is SLL_jn in component buffca (mM).
C STATES(7) is SLL_sl in component buffca (mM).
C STATES(8) is SRB in component buffca (mM).
C STATES(9) is TnCHc in component buffca (mM).
C STATES(10) is TnCHm in component buffca (mM).
C STATES(11) is TnCL in component buffca (mM).
C CONSTS(6) is koff_cam in component buffca (mS_per_uF).
C CONSTS(7) is koff_myoca in component buffca (mS_per_uF).
C CONSTS(8) is koff_myomg in component buffca (mS_per_uF).
C CONSTS(9) is koff_slh in component buffca (mS_per_uF).
C CONSTS(10) is koff_sll in component buffca (mS_per_uF).
C CONSTS(11) is koff_sr in component buffca (mS_per_uF).
C CONSTS(12) is koff_tnchca in component buffca (mS_per_uF).
C CONSTS(13) is koff_tnchmg in component buffca (mS_per_uF).
C CONSTS(103) is koff_tncl in component buffca (mS_per_uF).
C CONSTS(14) is kon_cam in component buffca (per_mM_per_ms).
C CONSTS(15) is kon_myoca in component buffca (per_mM_per_ms).
C CONSTS(16) is kon_myomg in component buffca (per_mM_per_ms).
C CONSTS(17) is kon_slh in component buffca (per_mM_per_ms).
C CONSTS(18) is kon_sll in component buffca (per_mM_per_ms).
C CONSTS(19) is kon_sr in component buffca (per_mM_per_ms).
C CONSTS(20) is kon_tnchca in component buffca (per_mM_per_ms).
C CONSTS(21) is kon_tnchmg in component buffca (per_mM_per_ms).
C CONSTS(22) is kon_tncl in component buffca (per_mM_per_ms).
C CONSTS(124) is Vjn in component geom (liter).
C CONSTS(127) is Vmyo in component geom (liter).
C CONSTS(131) is Vsl in component geom (liter).
C STATES(12) is Ca_i in component calcium (mM).
C VOI is time in component engine (ms).
C CONSTS(23) is Mg_i in component ion (mM).
C STATES(13) is Ca_jn in component calcium (mM).
C STATES(14) is Ca_sl in component calcium (mM).
C CONSTS(24) is ISO in component cell (dimensionless).
C CONSTS(25) is Bmax_Na_jn in component buffna (mM).
C CONSTS(26) is Bmax_Na_sl in component buffna (mM).
C STATES(15) is NaB_jn in component buffna (mM).
C STATES(16) is NaB_sl in component buffna (mM).
C CONSTS(27) is koff_na in component buffna (mS_per_uF).
C CONSTS(28) is kon_na in component buffna (per_mM_per_ms).
C STATES(17) is Na_jn in component sodium (mM).
C STATES(18) is Na_sl in component sodium (mM).
C STATES(19) is Ca_sr in component calcium (mM).
C STATES(20) is Csqn in component calcium (mM).
C ALGBRC(83) is ICa_tot_jn in component calcium (A_per_F).
C ALGBRC(90) is ICa_tot_sl in component calcium (A_per_F).
C CONSTS(29) is JCa_slmyo in component geom (m3_per_s).
C CONSTS(132) is Vsr in component geom (liter).
C ALGBRC(88) is J_serca in component ryr (mM_per_ms).
C CONSTS(30) is C in component cell (farad).
C CONSTS(31) is JCa_jnsl in component geom (m3_per_s).
C CONSTS(32) is F in component phys (C_per_mol).
C ALGBRC(84) is J_SRCarel in component ryr (mM_per_ms).
C ALGBRC(86) is J_SR_leak in component ryr (mM_per_ms).
C CONSTS(136) is Bmax_Csqn in component calcium_Csqn (mM).
C CONSTS(33) is koff_csqn in component calcium_Csqn (mS_per_uF).
C CONSTS(34) is kon_csqn in component calcium_Csqn (per_mM_per_ms).
C ALGBRC(82) is ICaB_jn in component icab (A_per_F).
C ALGBRC(38) is ICaL_Ca_jn in component ical (A_per_F).
C ALGBRC(65) is INaCa_jn in component inaca (A_per_F).
C ALGBRC(76) is IpCa_jn in component ipca (A_per_F).
C ALGBRC(87) is ICaB_sl in component icab (A_per_F).
C ALGBRC(40) is ICaL_Ca_sl in component ical (A_per_F).
C ALGBRC(69) is INaCa_sl in component inaca (A_per_F).
C ALGBRC(78) is IpCa_sl in component ipca (A_per_F).
C CONSTS(35) is AF in component cell (dimensionless).
C CONSTS(36) is RA in component cell (dimensionless).
C CONSTS(37) is JNa_jnsl in component geom (m3_per_s).
C CONSTS(38) is JNa_slmyo in component geom (m3_per_s).
C CONSTS(104) is Vcell in component geom (liter).
C CONSTS(39) is cell_length in component geom (um).
C CONSTS(40) is cell_radius in component geom (um).
C CONSTS(41) is pi in component geom (dimensionless).
C ALGBRC(89) is ICaB in component icab (A_per_F).
C CONSTS(42) is gCaB in component icab (mS_per_uF).
C CONSTS(43) is Fjn in component junc (dimensionless).
C STATES(21) is V in component membrane (mV).
C ALGBRC(81) is ECa_jn in component nernst (mV).
C CONSTS(128) is Fsl in component junc (dimensionless).
C ALGBRC(85) is ECa_sl in component nernst (mV).
C ALGBRC(51) is ICaL in component ical (A_per_F).
C ALGBRC(41) is ICaL_Ca in component ical (A_per_F).
C ALGBRC(43) is ICaL_K in component ical (A_per_F).
C ALGBRC(49) is ICaL_Na in component ical (A_per_F).
C ALGBRC(45) is ICaL_Na_jn in component ical (A_per_F).
C ALGBRC(47) is ICaL_Na_sl in component ical (A_per_F).
C CONSTS(44) is Q10CaL in component ical (dimensionless).
C STATES(22) is d in component ical (dimensionless).
C STATES(23) is f in component ical (dimensionless).
C STATES(24) is fCaB_jn in component ical (dimensionless).
C STATES(25) is fCaB_sl in component ical (dimensionless).
C CONSTS(45) is f_conducting in component ical (dimensionless).
C CONSTS(46) is fcaCaMSL in component ical (dimensionless).
C CONSTS(47) is fcaCaj in component ical (dimensionless).
C ALGBRC(37) is ibarca_jn in component ical (uA_per_cm2).
C ALGBRC(39) is ibarca_sl in component ical (uA_per_cm2).
C ALGBRC(42) is ibark in component ical (uA_per_cm2).
C ALGBRC(44) is ibarna_jn in component ical (uA_per_cm2).
C ALGBRC(46) is ibarna_sl in component ical (uA_per_cm2).
C CONSTS(106) is pCa in component ical (cm_per_s).
C CONSTS(48) is pCa_max in component ical (cm_per_s).
C CONSTS(107) is pK in component ical (cm_per_s).
C CONSTS(49) is pK_max in component ical (cm_per_s).
C CONSTS(108) is pNa in component ical (cm_per_s).
C CONSTS(50) is pNa_max in component ical (cm_per_s).
C CONSTS(51) is Fjn_CaL in component junc (dimensionless).
C CONSTS(133) is Q in component phys (dimensionless).
C CONSTS(109) is Fsl_CaL in component junc (dimensionless).
C ALGBRC(1) is ical_d_inf in component ical_d (dimensionless).
C ALGBRC(15) is ical_d_tau in component ical_d (ms).
C ALGBRC(2) is ical_f_inf in component ical_f (dimensionless).
C ALGBRC(16) is ical_f_tau in component ical_f (ms).
C CONSTS(52) is Ca_o in component ion (mM).
C CONSTS(110) is FRT in component phys (per_mV).
C CONSTS(53) is K_o in component ion (mM).
C STATES(26) is K_i in component potassium (mM).
C CONSTS(54) is Na_o in component ion (mM).
C ALGBRC(48) is IClB in component iclb (A_per_F).
C CONSTS(55) is gClB in component iclb (mS_per_uF).
C CONSTS(126) is ECl in component nernst (mV).
C CONSTS(56) is GClCa in component iclca (mS_per_uF).
C ALGBRC(53) is IClCa in component iclca (A_per_F).
C ALGBRC(50) is IClCa_jn in component iclca (A_per_F).
C ALGBRC(52) is IClCa_sl in component iclca (A_per_F).
C CONSTS(57) is KdClCa in component iclca (mM).
C ALGBRC(96) is IK1 in component ik1 (A_per_F).
C CONSTS(111) is gK1 in component ik1 (mS_per_uF).
C CONSTS(58) is gK1_max in component ik1 (mS_per_uF).
C ALGBRC(95) is ik1_inf in component ik1 (dimensionless).
C ALGBRC(92) is EK in component nernst (mV).
C ALGBRC(93) is ik1_inf_a in component ik1_ik1_inf (mS_per_uF).
C ALGBRC(94) is ik1_inf_b in component ik1_ik1_inf (mS_per_uF).
C ALGBRC(99) is IKp in component ikp (A_per_F).
C ALGBRC(97) is IKp_jn in component ikp (A_per_F).
C ALGBRC(98) is IKp_sl in component ikp (A_per_F).
C CONSTS(59) is gKp in component ikp (mS_per_uF).
C ALGBRC(54) is kp in component ikp (dimensionless).
C ALGBRC(100) is IKr in component ikr (A_per_F).
C CONSTS(112) is gKr in component ikr (mS_per_uF).
C CONSTS(60) is gKr_max in component ikr (mS_per_uF).
C ALGBRC(55) is rr in component ikr (dimensionless).
C STATES(27) is xr in component ikr (dimensionless).
C ALGBRC(3) is ikr_xr_inf in component ikr_xr (dimensionless).
C ALGBRC(17) is ikr_xr_tau in component ikr_xr (ms).
C ALGBRC(56) is EKs in component iks (mV).
C ALGBRC(59) is IKs in component iks (A_per_F).
C ALGBRC(57) is IKs_jn in component iks (A_per_F).
C ALGBRC(58) is IKs_sl in component iks (A_per_F).
C CONSTS(113) is gKs_jn in component iks (mS_per_uF).
C CONSTS(61) is gKs_max in component iks (mS_per_uF).
C CONSTS(114) is gKs_sl in component iks (mS_per_uF).
C CONSTS(62) is pNaK in component iks (dimensionless).
C STATES(28) is xs in component iks (dimensionless).
C STATES(29) is Na_i in component sodium (mM).
C ALGBRC(4) is iks_xs_inf in component iks_xs (dimensionless).
C ALGBRC(18) is iks_xs_tau in component iks_xs (ms).
C ALGBRC(101) is IKur in component ikur (A_per_F).
C CONSTS(115) is gKur in component ikur (mS_per_uF).
C CONSTS(63) is gKur_max in component ikur (mS_per_uF).
C STATES(30) is ikur_r in component ikur (dimensionless).
C STATES(31) is s in component ikur (dimensionless).
C ALGBRC(5) is ikur_r_inf in component ikur_ikur_r (dimensionless).
C ALGBRC(19) is ikur_r_tau in component ikur_ikur_r (ms).
C ALGBRC(6) is ikur_s_inf in component ikur_s (dimensionless).
C ALGBRC(20) is ikur_s_tau in component ikur_s (ms).
C ALGBRC(109) is INa in component ina (A_per_F).
C ALGBRC(104) is INa_jn in component ina (A_per_F).
C ALGBRC(108) is INa_sl in component ina (A_per_F).
C CONSTS(116) is gNa in component ina (mS_per_uF).
C CONSTS(64) is gNa_max in component ina (mS_per_uF).
C STATES(32) is h in component ina (dimensionless).
C STATES(33) is j in component ina (dimensionless).
C STATES(34) is m in component ina (dimensionless).
C ALGBRC(103) is ENa_jn in component nernst (mV).
C ALGBRC(107) is ENa_sl in component nernst (mV).
C ALGBRC(28) is ina_h_inf in component ina_h (dimensionless).
C ALGBRC(31) is ina_h_tau in component ina_h (ms).
C ALGBRC(29) is ina_j_inf in component ina_j (dimensionless).
C ALGBRC(32) is ina_j_tau in component ina_j (ms).
C ALGBRC(9) is ina_m_inf in component ina_m (dimensionless).
C ALGBRC(23) is ina_m_tau in component ina_m (ms).
C ALGBRC(7) is ina_h_a in component ina_h (mS_per_uF).
C ALGBRC(21) is ina_h_b in component ina_h (mS_per_uF).
C ALGBRC(8) is ina_j_a in component ina_j (mS_per_uF).
C ALGBRC(22) is ina_j_b in component ina_j (mS_per_uF).
C ALGBRC(111) is INaB in component inab (A_per_F).
C ALGBRC(105) is INaB_jn in component inab (A_per_F).
C ALGBRC(110) is INaB_sl in component inab (A_per_F).
C CONSTS(65) is gNaB in component inab (mS_per_uF).
C ALGBRC(71) is INaCa in component inaca (A_per_F).
C CONSTS(117) is IbarNCX in component inaca (A_per_F).
C CONSTS(66) is IbarNCX_max in component inaca (A_per_F).
C ALGBRC(60) is Ka_jn in component inaca (dimensionless).
C ALGBRC(61) is Ka_sl in component inaca (dimensionless).
C CONSTS(67) is Kdact in component inaca (mM).
C CONSTS(68) is KmCai in component inaca (mM).
C CONSTS(69) is KmCao in component inaca (mM).
C CONSTS(70) is KmNai in component inaca (mM).
C CONSTS(71) is KmNao in component inaca (mM).
C CONSTS(72) is Q10NCX in component inaca (dimensionless).
C CONSTS(73) is ksat in component inaca (dimensionless).
C CONSTS(74) is nu in component inaca (dimensionless).
C ALGBRC(62) is s1_jn in component inaca_INaCa_jn (mol4_per_m12).
C ALGBRC(63) is s2_jn in component inaca_INaCa_jn (mol4_per_m12).
C ALGBRC(64) is s3_jn in component inaca_INaCa_jn (mol4_per_m12).
C ALGBRC(66) is s1_sl in component inaca_INaCa_sl (mol4_per_m12).
C ALGBRC(67) is s2_sl in component inaca_INaCa_sl (mol4_per_m12).
C ALGBRC(68) is s3_sl in component inaca_INaCa_sl (mol4_per_m12).
C ALGBRC(74) is INaK in component inak (A_per_F).
C ALGBRC(72) is INaK_jn in component inak (A_per_F).
C ALGBRC(73) is INaK_sl in component inak (A_per_F).
C CONSTS(75) is IbarNaK in component inak (A_per_F).
C CONSTS(76) is KmKo in component inak (mM).
C CONSTS(118) is KmNaip in component inak (mM).
C ALGBRC(70) is fnak in component inak (dimensionless).
C CONSTS(119) is sigma in component inak (dimensionless).
C ALGBRC(113) is INaL in component inal (A_per_F).
C ALGBRC(106) is INaL_jn in component inal (A_per_F).
C ALGBRC(112) is INaL_sl in component inal (A_per_F).
C CONSTS(120) is gNaL in component inal (mS_per_uF).
C CONSTS(77) is gNaL_max in component inal (mS_per_uF).
C STATES(35) is hl in component inal (dimensionless).
C STATES(36) is ml in component inal (dimensionless).
C ALGBRC(10) is inal_hl_inf in component inal_hl (dimensionless).
C CONSTS(78) is inal_hl_tau in component inal_hl (ms).
C ALGBRC(11) is inal_ml_a in component inal_ml (mS_per_uF).
C ALGBRC(24) is inal_ml_b in component inal_ml (mS_per_uF).
C CONSTS(79) is Cl_i in component ion (mM).
C CONSTS(80) is Cl_o in component ion (mM).
C CONSTS(81) is IbarSLCaP in component ipca (A_per_F).
C ALGBRC(80) is IpCa in component ipca (A_per_F).
C CONSTS(82) is KmPCa in component ipca (mM).
C CONSTS(83) is Q10SLCaP in component ipca (dimensionless).
C ALGBRC(75) is ipca_IpCa_jn_a in component ipca_IpCa_jn (dimensionless).
C CONSTS(105) is ipca_IpCa_jn_b in component ipca_IpCa_jn (dimensionless).
C ALGBRC(77) is ipca_IpCa_sl_a in component ipca_IpCa_sl (dimensionless).
C CONSTS(125) is ipca_IpCa_sl_b in component ipca_IpCa_sl (dimensionless).
C ALGBRC(102) is Ito in component ito (A_per_F).
C CONSTS(121) is gto in component ito (mS_per_uF).
C CONSTS(84) is gto_max in component ito (mS_per_uF).
C STATES(37) is x in component ito (dimensionless).
C STATES(38) is y in component ito (dimensionless).
C ALGBRC(12) is ito_x_inf in component ito_x (dimensionless).
C ALGBRC(25) is ito_x_tau in component ito_x (ms).
C ALGBRC(13) is ito_y_inf in component ito_y (dimensionless).
C ALGBRC(26) is ito_y_tau in component ito_y (ms).
C ALGBRC(91) is ICa_tot in component membrane (A_per_F).
C ALGBRC(79) is ICl_tot in component membrane (A_per_F).
C ALGBRC(117) is INa_tot in component membrane (A_per_F).
C ALGBRC(118) is I_tot in component membrane (A_per_F).
C ALGBRC(115) is INa_tot_jn in component sodium (A_per_F).
C ALGBRC(116) is INa_tot_sl in component sodium (A_per_F).
C ALGBRC(114) is IK_tot in component potassium (A_per_F).
C ALGBRC(120) is I_stim in component stimulus (A_per_F).
C CONSTS(85) is R in component phys (mJ_per_mol_per_K).
C CONSTS(86) is T in component phys (kelvin).
C CONSTS(87) is J_SR_leak_max in component ryr (mS_per_uF).
C CONSTS(122) is Kmf in component ryr (mM).
C CONSTS(88) is Kmr in component ryr (mM).
C CONSTS(89) is MaxSR in component ryr (dimensionless).
C CONSTS(90) is MinSR in component ryr (dimensionless).
C CONSTS(91) is Q10SRCaP in component ryr (dimensionless).
C ALGBRC(14) is RI in component ryr (dimensionless).
C CONSTS(92) is Vmax_SRCaP in component ryr (mM_per_ms).
C CONSTS(93) is ec50SR in component ryr (mM).
C CONSTS(94) is hillSRCaP in component ryr (dimensionless).
C STATES(39) is i in component ryr (dimensionless).
C ALGBRC(27) is kCaSR in component ryr (dimensionless).
C CONSTS(95) is kiCa in component ryr (per_mM_per_ms).
C ALGBRC(30) is kiSRCa in component ryr (per_mM_per_ms).
C CONSTS(96) is kim in component ryr (mS_per_uF).
C CONSTS(123) is koCa in component ryr (per_mM2_per_ms).
C ALGBRC(33) is koSRCa in component ryr (per_mM2_per_ms).
C CONSTS(97) is kom in component ryr (mS_per_uF).
C CONSTS(98) is ks in component ryr (mS_per_uF).
C STATES(40) is o in component ryr (dimensionless).
C STATES(41) is ryr_r in component ryr (dimensionless).
C CONSTS(99) is amplitude in component stimulus (A_per_F).
C ALGBRC(119) is pace in component stimulus (dimensionless).
C CONSTS(100) is stim_duration in component stimulus (ms).
C CONSTS(101) is stim_offset in component stimulus (ms).
C CONSTS(102) is stim_period in component stimulus (ms).
C RATES(1) is d/dt CaM in component buffca (mM).
C RATES(11) is d/dt TnCL in component buffca (mM).
C RATES(9) is d/dt TnCHc in component buffca (mM).
C RATES(10) is d/dt TnCHm in component buffca (mM).
C RATES(2) is d/dt Myoc in component buffca (mM).
C RATES(3) is d/dt Myom in component buffca (mM).
C RATES(8) is d/dt SRB in component buffca (mM).
C RATES(6) is d/dt SLL_jn in component buffca (mM).
C RATES(4) is d/dt SLH_jn in component buffca (mM).
C RATES(7) is d/dt SLL_sl in component buffca (mM).
C RATES(5) is d/dt SLH_sl in component buffca (mM).
C RATES(15) is d/dt NaB_jn in component buffna (mM).
C RATES(16) is d/dt NaB_sl in component buffna (mM).
C RATES(12) is d/dt Ca_i in component calcium (mM).
C RATES(13) is d/dt Ca_jn in component calcium (mM).
C RATES(14) is d/dt Ca_sl in component calcium (mM).
C RATES(19) is d/dt Ca_sr in component calcium (mM).
C RATES(20) is d/dt Csqn in component calcium (mM).
C RATES(22) is d/dt d in component ical (dimensionless).
C RATES(23) is d/dt f in component ical (dimensionless).
C RATES(24) is d/dt fCaB_jn in component ical (dimensionless).
C RATES(25) is d/dt fCaB_sl in component ical (dimensionless).
C RATES(27) is d/dt xr in component ikr (dimensionless).
C RATES(28) is d/dt xs in component iks (dimensionless).
C RATES(30) is d/dt ikur_r in component ikur (dimensionless).
C RATES(31) is d/dt s in component ikur (dimensionless).
C RATES(32) is d/dt h in component ina (dimensionless).
C RATES(33) is d/dt j in component ina (dimensionless).
C RATES(34) is d/dt m in component ina (dimensionless).
C RATES(35) is d/dt hl in component inal (dimensionless).
C RATES(36) is d/dt ml in component inal (dimensionless).
C RATES(37) is d/dt x in component ito (dimensionless).
C RATES(38) is d/dt y in component ito (dimensionless).
C RATES(21) is d/dt V in component membrane (mV).
C RATES(26) is d/dt K_i in component potassium (mM).
C RATES(39) is d/dt i in component ryr (dimensionless).
C RATES(40) is d/dt o in component ryr (dimensionless).
C RATES(41) is d/dt ryr_r in component ryr (dimensionless).
C RATES(29) is d/dt Na_i in component sodium (mM).
C RATES(17) is d/dt Na_jn in component sodium (mM).
C RATES(18) is d/dt Na_sl in component sodium (mM).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 0.024
      CONSTS(2) = 0.0171
      CONSTS(3) = 0.14
      CONSTS(4) = 0.07
      CONSTS(5) = 0.14
      STATES(1) =  7.02128101897185673e-04
      STATES(2) =  3.94923428392655786e-03
      STATES(3) =  1.35538532457244482e-01
      STATES(4) =  1.03674364292988680e-01
      STATES(5) =  1.90759804527589089e-01
      STATES(6) =  1.35640688636079511e-02
      STATES(7) =  2.14063418881809235e-02
      STATES(8) =  4.45327242854324807e-03
      STATES(9) =  1.27856586024588575e-01
      STATES(10) =  5.69999505293381902e-03
      STATES(11) =  1.83143535034222225e-02
      CONSTS(6) = 0.238
      CONSTS(7) = 0.00046
      CONSTS(8) = 5.7e-05
      CONSTS(9) = 0.03
      CONSTS(10) = 1.3
      CONSTS(11) = 0.06
      CONSTS(12) = 3.2e-05
      CONSTS(13) = 0.00333
      CONSTS(14) = 34.0
      CONSTS(15) = 13.8
      CONSTS(16) = 0.0157
      CONSTS(17) = 100.0
      CONSTS(18) = 100.0
      CONSTS(19) = 100.0
      CONSTS(20) = 2.37
      CONSTS(21) = 0.003
      CONSTS(22) = 32.7
      STATES(12) =  2.10808768153058460e-04
      CONSTS(23) = 1.0
      STATES(13) =  3.25814677291117296e-04
      STATES(14) =  2.33018340557575125e-04
      CONSTS(24) = 0.0
      CONSTS(25) = 7.561
      CONSTS(26) = 1.65
      STATES(15) =  3.61396062660070427e+00
      STATES(16) =  7.88607791910409195e-01
      CONSTS(27) = 0.001
      CONSTS(28) = 0.0001
      STATES(17) =  9.15153381546177336e+00
      STATES(18) =  9.15182798281732346e+00
      STATES(19) =  5.02305826642838293e-01
      STATES(20) =  1.13337536953687845e+00
      CONSTS(29) =  3.72425607984805052e-12
      CONSTS(30) = 1.1e-10
      CONSTS(31) =  8.24130542277896849e-13
      CONSTS(32) = 96485.0
      CONSTS(33) = 65.0
      CONSTS(34) = 100.0
      CONSTS(35) = 0.0
      CONSTS(36) = 0.0
      CONSTS(37) =  1.83127823220607955e-14
      CONSTS(38) =  1.63862792221979433e-12
      CONSTS(39) = 100.0
      CONSTS(40) = 10.25
      CONSTS(41) =  3.14159265358979312e+00
      CONSTS(42) =  6.06430000000000033e-04
      CONSTS(43) = 0.11
      STATES(21) = -7.34336366728778671e+01
      CONSTS(44) = 1.8
      STATES(22) =  2.16850216379767157e-05
      STATES(23) =  9.98384427312367095e-01
      STATES(24) =  4.49572164109603364e-02
      STATES(25) =  3.28512098597005947e-02
      CONSTS(45) = 1.0
      CONSTS(46) = 0.0
      CONSTS(47) = 0.0
      CONSTS(48) = 0.00027
      CONSTS(49) = 1.35e-07
      CONSTS(50) = 7.5e-09
      CONSTS(51) = 0.9
      CONSTS(52) = 1.8
      CONSTS(53) = 5.4
      STATES(26) = 120.0
      CONSTS(54) = 140.0
      CONSTS(55) = 0.009
      CONSTS(56) = 0.0548
      CONSTS(57) = 0.1
      CONSTS(58) = 0.0525
      CONSTS(59) = 0.002
      CONSTS(60) = 0.035
      STATES(27) =  1.31290096227093382e-03
      CONSTS(61) = 0.0035
      CONSTS(62) = 0.01833
      STATES(28) =  7.49436760722081534e-03
      STATES(29) =  9.15199678386256998e+00
      CONSTS(63) = 0.045
      STATES(30) =  3.93548562883350357e-04
      STATES(31) =  9.58234428284286399e-01
      CONSTS(64) = 23.0
      STATES(32) =  3.15482710277587786e-01
      STATES(33) =  2.48034071360795916e-01
      STATES(34) =  1.89326933812916480e-02
      CONSTS(65) = 0.000597
      CONSTS(66) = 3.15
      CONSTS(67) = 0.000384
      CONSTS(68) = 0.00359
      CONSTS(69) = 1.3
      CONSTS(70) = 12.29
      CONSTS(71) = 87.5
      CONSTS(72) = 1.57
      CONSTS(73) = 0.27
      CONSTS(74) = 0.35
      CONSTS(75) = 1.26
      CONSTS(76) = 1.5
      CONSTS(77) = 0.0025
      STATES(35) =  3.79829335413739144e-02
      STATES(36) =  1.01974216400706526e-02
      CONSTS(78) = 600.0
      CONSTS(79) = 15.0
      CONSTS(80) = 150.0
      CONSTS(81) = 0.0471
      CONSTS(82) = 0.0005
      CONSTS(83) = 2.35
      CONSTS(84) = 0.165
      STATES(37) =  1.37939236359928058e-03
      STATES(38) =  9.45874848392074696e-01
      CONSTS(85) = 8314.0
      CONSTS(86) = 310.0
      CONSTS(87) = 5.348e-06
      CONSTS(88) = 1.7
      CONSTS(89) = 15.0
      CONSTS(90) = 1.0
      CONSTS(91) = 2.6
      CONSTS(92) = 0.0053114
      CONSTS(93) = 0.45
      CONSTS(94) = 1.787
      STATES(39) =  5.01323282772066123e-07
      CONSTS(95) = 0.5
      CONSTS(96) = 0.005
      CONSTS(97) = 0.06
      CONSTS(98) = 25.0
      STATES(40) =  2.01567245823636694e-06
      STATES(41) =  8.00819151705148946e-01
      CONSTS(99) = -12.5
      CONSTS(100) = 5.0
      CONSTS(101) = 50.0
      CONSTS(102) = 1000.0
      CONSTS(103) =  (1.00000+ 0.500000*CONSTS(24))*0.0196000
      CONSTS(104) =  ( ( CONSTS(41)*CONSTS(40) ** 2.00000)*CONSTS(39))*1.00000e-15
      CONSTS(105) =  CONSTS(82)*1.00000 ** 1.60000
      CONSTS(106) =  ( (1.00000+ 0.500000*CONSTS(24))*(1.00000 -  0.500000*CONSTS(35)))*CONSTS(48)
      CONSTS(107) =  ( (1.00000+ 0.500000*CONSTS(24))*(1.00000 -  0.500000*CONSTS(35)))*CONSTS(49)
      CONSTS(108) =  ( (1.00000+ 0.500000*CONSTS(24))*(1.00000 -  0.500000*CONSTS(35)))*CONSTS(50)
      CONSTS(109) = 1.00000 - CONSTS(51)
      CONSTS(110) = (CONSTS(32)/CONSTS(85))/CONSTS(86)
      CONSTS(111) =  ( (1.00000+CONSTS(35))* (CONSTS(53)/5.40000) ** (1.0 / 2))*CONSTS(58)
      CONSTS(112) =  CONSTS(60)* (CONSTS(53)/5.40000) ** (1.0 / 2)
      CONSTS(113) =  ((1.00000+CONSTS(35))+ 2.00000*CONSTS(24))*CONSTS(61)
      CONSTS(114) =  ((1.00000+CONSTS(35))+ 2.00000*CONSTS(24))*CONSTS(61)
      CONSTS(115) =  ( ( (1.00000 -  0.500000*CONSTS(35))*(1.00000+ 2.00000*CONSTS(24)))*(1.00000+ 0.200000*CONSTS(36)))*CONSTS(63)
      CONSTS(116) =  CONSTS(64)*(1.00000 -  0.100000*CONSTS(35))
      CONSTS(117) =  (1.00000+ 0.400000*CONSTS(35))*CONSTS(66)
      CONSTS(118) =  11.0000*(1.00000 -  0.250000*CONSTS(24))
      CONSTS(119) = (EXP(CONSTS(54)/67.3000) - 1.00000)/7.00000
      CONSTS(120) =  CONSTS(77)*CONSTS(35)
      CONSTS(121) =  (1.00000 -  0.700000*CONSTS(35))*CONSTS(84)
      CONSTS(122) =  (2.50000 -  1.25000*CONSTS(24))*0.000246000
      CONSTS(123) =  ((10.0000+ 20.0000*CONSTS(35))+ ( 10.0000*CONSTS(24))*(1.00000 - CONSTS(35)))*1.00000
      CONSTS(136) = 0.00000
      CONSTS(124) =  ( 0.0539000*0.0100000)*CONSTS(104)
      CONSTS(125) =  CONSTS(82)*1.00000 ** 1.60000
      CONSTS(126) =  (1.00000/CONSTS(110))*log(CONSTS(79)/CONSTS(80))
      CONSTS(127) =  0.650000*CONSTS(104)
      CONSTS(128) = 1.00000 - CONSTS(43)
      CONSTS(129) =  (( 0.00165000*CONSTS(127))/CONSTS(124))*0.100000
      CONSTS(130) =  (( 0.00460000*CONSTS(127))/CONSTS(124))*0.100000
      CONSTS(131) =  0.0200000*CONSTS(104)
      CONSTS(132) =  0.0350000*CONSTS(104)
      CONSTS(133) = (CONSTS(86) - 310.000)/10.0000
      CONSTS(134) =  (CONSTS(127)/CONSTS(131))*0.0134000
      CONSTS(135) =  (CONSTS(127)/CONSTS(131))*0.0374000
      CONSTS(136) =  (CONSTS(127)/CONSTS(132))*0.140000
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(26) = CONSTS(136)
      RATES(1) =  ( CONSTS(14)*STATES(12))*(CONSTS(1) - STATES(1)) -  CONSTS(6)*STATES(1)
      RATES(24) =  ( ( 1.70000*STATES(13))*(1.00000 - STATES(24)) -  0.0119000*STATES(24))*1.00000
      RATES(25) =  ( ( 1.70000*STATES(14))*(1.00000 - STATES(25)) -  0.0119000*STATES(25))*1.00000
      RATES(29) =  (CONSTS(38)/CONSTS(127))*(STATES(18) - STATES(29))
      RATES(2) =  ( CONSTS(15)*STATES(12))*((CONSTS(5) - STATES(2)) - STATES(3)) -  CONSTS(7)*STATES(2)
      ALGBRC(10) = 1.00000/(1.00000+EXP((STATES(21)+91.0000)/6.10000))
      RATES(35) = (ALGBRC(10) - STATES(35))/CONSTS(78)
      RATES(3) =  ( CONSTS(16)*CONSTS(23))*((CONSTS(5) - STATES(2)) - STATES(3)) -  CONSTS(8)*STATES(3)
      ALGBRC(1) = 1.00000/(1.00000+EXP(- ((STATES(21)+ 3.00000*CONSTS(24))+9.00000)/6.00000))
      ALGBRC(15) = ( ALGBRC(1)*(1.00000 - EXP(- ((STATES(21)+ 3.00000*CONSTS(24))+9.00000)/6.00000)))/( 0.0350000*((STATES(21)+ 3.00000*CONSTS(24))+9.00000))
      RATES(22) = (ALGBRC(1) - STATES(22))/ALGBRC(15)
      ALGBRC(2) = 1.00000/(1.00000+EXP(((STATES(21)+ 3.00000*CONSTS(24))+30.0000)/7.00000))+0.200000/(1.00000+EXP(((50.0000 - STATES(21)) -  3.00000*CONSTS(24))/20.0000))
      ALGBRC(16) = 1.00000/( 0.0197000*EXP(-  0.0337000*((STATES(21)+ 3.00000*CONSTS(24))+25.0000) ** 2.00000)+0.0200000)
      RATES(23) = (ALGBRC(2) - STATES(23))/ALGBRC(16)
      ALGBRC(3) = 1.00000/(1.00000+EXP(- (STATES(21)+10.0000)/5.00000))
      ALGBRC(17) = ( ((550.000)/(1.00000+EXP((- 22.0000 - STATES(21))/9.00000)))*6.00000)/(1.00000+EXP((STATES(21)+11.0000)/9.00000))+230.000/(1.00000+EXP((STATES(21)+40.0000)/20.0000))
      RATES(27) = (ALGBRC(3) - STATES(27))/ALGBRC(17)
      ALGBRC(4) = 1.00000/(1.00000+EXP(- ((STATES(21)+ 40.0000*CONSTS(24))+3.80000)/14.2500))
      ALGBRC(18) = 990.100/(1.00000+EXP(- ((STATES(21)+ 40.0000*CONSTS(24))+2.43600)/14.1200))
      RATES(28) = (ALGBRC(4) - STATES(28))/ALGBRC(18)
      ALGBRC(5) = 1.00000/(1.00000+EXP((STATES(21)+6.00000)/- 8.60000))
      ALGBRC(19) = 9.00000/(1.00000+EXP((STATES(21)+5.00000)/12.0000))+0.500000
      RATES(30) = (ALGBRC(5) - STATES(30))/ALGBRC(19)
      ALGBRC(6) = 1.00000/(1.00000+EXP((STATES(21)+7.50000)/10.0000))
      ALGBRC(20) = 590.000/(1.00000+EXP((STATES(21)+60.0000)/10.0000))+3050.00
      RATES(31) = (ALGBRC(6) - STATES(31))/ALGBRC(20)
      ALGBRC(9) = 1.00000/1.00000+EXP(- (56.8600+STATES(21))/9.03000) ** 2.00000
      ALGBRC(23) =  0.129200*EXP(- (STATES(21)+45.7900)/15.5400 ** 2.00000)+ 0.0648700*EXP(- (STATES(21) - 4.82300)/51.1200 ** 2.00000)
      RATES(34) = (ALGBRC(9) - STATES(34))/ALGBRC(23)
      ALGBRC(11) = ( 0.320000*(STATES(21)+47.1300))/(1.00000 - EXP( - 0.100000*(STATES(21)+47.1300)))
      ALGBRC(24) =  0.0800000*EXP(- STATES(21)/11.0000)
      RATES(36) =  ALGBRC(11)*(1.00000 - STATES(36)) -  ALGBRC(24)*STATES(36)
      ALGBRC(12) = 1.00000/(1.00000+EXP(- (STATES(21)+1.00000)/11.0000))
      ALGBRC(25) =  3.50000*EXP(- STATES(21)/30.0000 ** 2.00000)+1.50000
      RATES(37) = (ALGBRC(12) - STATES(37))/ALGBRC(25)
      ALGBRC(13) = 1.00000/(1.00000+EXP((STATES(21)+40.5000)/11.5000))
      ALGBRC(26) =  25.6350*EXP(- (STATES(21)+52.4500)/15.8827 ** 2.00000)+24.1400
      RATES(38) = (ALGBRC(13) - STATES(38))/ALGBRC(26)
      RATES(4) =  ( CONSTS(17)*STATES(13))*(CONSTS(129) - STATES(4)) -  CONSTS(9)*STATES(4)
      RATES(5) =  ( CONSTS(17)*STATES(14))*(CONSTS(134) - STATES(5)) -  CONSTS(9)*STATES(5)
      ALGBRC(28) = 1.00000/1.00000+EXP((STATES(21)+71.5500)/7.43000) ** 2.00000
      ALGBRC(7) =  (TERNRY(STATES(21).GE.- 40.0000, 0.00000,  0.0570000*EXP(- (STATES(21)+80.0000)/6.80000)))*1.00000
      ALGBRC(21) =  (TERNRY(STATES(21).GE.- 40.0000, 0.770000/( 0.130000*(1.00000+EXP(- (STATES(21)+10.6600)/11.1000))),  2.70000*EXP( 0.0790000*STATES(21))+ ( 3.10000*10.0000 ** 5.00000)*EXP( 0.348500*STATES(21))))*1.00000
      ALGBRC(31) = 1.00000/(ALGBRC(7)+ALGBRC(21))
      RATES(32) = (ALGBRC(28) - STATES(32))/ALGBRC(31)
      ALGBRC(29) = 1.00000/1.00000+EXP((STATES(21)+71.5500)/7.43000) ** 2.00000
      ALGBRC(8) =  (TERNRY(STATES(21).GE.- 40.0000, 0.00000,  (( ( ( - 2.54280*10.0000 ** 4.00000)*EXP( 0.244400*STATES(21)) -  ( 6.94800*10.0000 ** - 6.00000)*EXP( - 0.0439100*STATES(21)))*(STATES(21)+37.7800))/(1.00000+EXP( 0.311000*(STATES(21)+79.2300))))*1.00000))*1.00000
      ALGBRC(22) =  (TERNRY(STATES(21).GE.- 40.0000, ( 0.600000*EXP( 0.0570000*STATES(21)))/(1.00000+EXP( - 0.100000*(STATES(21)+32.0000))), ( 0.0242400*EXP( - 0.0105200*STATES(21)))/(1.00000+EXP( - 0.137800*(STATES(21)+40.1400)))))*1.00000
      ALGBRC(32) = 1.00000/(ALGBRC(8)+ALGBRC(22))
      RATES(33) = (ALGBRC(29) - STATES(33))/ALGBRC(32)
      ALGBRC(14) = ((1.00000 - STATES(41)) - STATES(40)) - STATES(39)
      ALGBRC(27) = CONSTS(89) - (CONSTS(89) - CONSTS(90))/(1.00000+CONSTS(93)/STATES(19) ** 2.50000)
      ALGBRC(30) =  CONSTS(95)*ALGBRC(27)
      ALGBRC(33) = CONSTS(123)/ALGBRC(27)
      RATES(39) = ( ( ALGBRC(30)*STATES(13))*STATES(40) -  CONSTS(96)*STATES(39)) - ( CONSTS(97)*STATES(39) -  ( ALGBRC(33)*STATES(13) ** 2.00000)*ALGBRC(14))
      RATES(40) = ( ( ALGBRC(33)*STATES(13) ** 2.00000)*STATES(41) -  CONSTS(97)*STATES(40)) - ( ( ALGBRC(30)*STATES(13))*STATES(40) -  CONSTS(96)*STATES(39))
      RATES(41) = ( CONSTS(96)*ALGBRC(14) -  ( ALGBRC(30)*STATES(13))*STATES(41)) - ( ( ALGBRC(33)*STATES(13) ** 2.00000)*STATES(41) -  CONSTS(97)*STATES(40))
      RATES(6) =  ( CONSTS(18)*STATES(13))*(CONSTS(130) - STATES(6)) -  CONSTS(10)*STATES(6)
      RATES(7) =  ( CONSTS(18)*STATES(14))*(CONSTS(135) - STATES(7)) -  CONSTS(10)*STATES(7)
      RATES(8) =  ( CONSTS(19)*STATES(12))*(CONSTS(2) - STATES(8)) -  CONSTS(11)*STATES(8)
      RATES(9) =  ( CONSTS(20)*STATES(12))*((CONSTS(3) - STATES(9)) - STATES(10)) -  CONSTS(12)*STATES(9)
      RATES(10) =  ( CONSTS(21)*CONSTS(23))*((CONSTS(3) - STATES(9)) - STATES(10)) -  CONSTS(13)*STATES(10)
      RATES(11) =  ( CONSTS(22)*STATES(12))*(CONSTS(4) - STATES(11)) -  CONSTS(103)*STATES(11)
      RATES(15) =  ( CONSTS(28)*STATES(17))*(CONSTS(25) - STATES(15)) -  CONSTS(27)*STATES(15)
      RATES(16) =  ( CONSTS(28)*STATES(18))*(CONSTS(26) - STATES(16)) -  CONSTS(27)*STATES(16)
      RATES(20) =  ( CONSTS(34)*STATES(19))*(CONSTS(136) - STATES(20)) -  CONSTS(33)*STATES(20)
      ALGBRC(34) = RATES(6)+RATES(4)
      ALGBRC(81) =  ((1.00000/CONSTS(110))/2.00000)*log(CONSTS(52)/STATES(13))
      ALGBRC(82) =  ( CONSTS(43)*CONSTS(42))*(STATES(21) - ALGBRC(81))
      ALGBRC(37) =  (( ( ( CONSTS(106)*4.00000)*( ( STATES(21)*CONSTS(32))*CONSTS(110)))*( ( 0.341000*STATES(13))*EXP( ( 2.00000*STATES(21))*CONSTS(110)) -  0.341000*CONSTS(52)))/(EXP( ( 2.00000*STATES(21))*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(38) =  ( ( ( ( ( CONSTS(51)*ALGBRC(37))*STATES(22))*STATES(23))*((1.00000 - STATES(24))+CONSTS(47)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(60) = 1.00000/(1.00000+CONSTS(67)/STATES(13) ** 2.00000)
      ALGBRC(62) =  ( EXP( ( CONSTS(74)*STATES(21))*CONSTS(110))*STATES(17) ** 3.00000)*CONSTS(52)
      ALGBRC(63) =  ( EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110))*CONSTS(54) ** 3.00000)*STATES(13)
      ALGBRC(64) = ((( ( CONSTS(68)*CONSTS(54) ** 3.00000)*(1.00000+STATES(17)/CONSTS(70) ** 3.00000)+ ( CONSTS(71) ** 3.00000*STATES(13))*(1.00000+STATES(13)/CONSTS(68)))+ CONSTS(69)*STATES(17) ** 3.00000)+ STATES(17) ** 3.00000*CONSTS(52))+ CONSTS(54) ** 3.00000*STATES(13)
      ALGBRC(65) = (( ( ( ( CONSTS(43)*CONSTS(117))*CONSTS(72) ** CONSTS(133))*ALGBRC(60))*(ALGBRC(62) - ALGBRC(63)))/ALGBRC(64))/(1.00000+ CONSTS(73)*EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110)))
      ALGBRC(75) =  STATES(13)*1.00000 ** 1.60000
      ALGBRC(76) = ( ( ( CONSTS(43)*CONSTS(83) ** CONSTS(133))*CONSTS(81))*ALGBRC(75))/(ALGBRC(75)+CONSTS(105))
      ALGBRC(83) = ((ALGBRC(38)+ALGBRC(82))+ALGBRC(76)) -  2.00000*ALGBRC(65)
      ALGBRC(84) =  ( CONSTS(98)*STATES(40))*(STATES(19) - STATES(13))
      ALGBRC(86) =  ( (1.00000+ 0.250000*CONSTS(35))*(STATES(19) - STATES(13)))*CONSTS(87)
      RATES(13) = (((( - ALGBRC(83)*CONSTS(30))/( ( CONSTS(124)*2.00000)*CONSTS(32))+ (CONSTS(31)/CONSTS(124))*(STATES(14) - STATES(13))) - ALGBRC(34))+( ALGBRC(84)*CONSTS(132))/CONSTS(124))+( ALGBRC(86)*CONSTS(127))/CONSTS(124)
      ALGBRC(36) = (((((RATES(11)+RATES(9))+RATES(10))+RATES(1))+RATES(2))+RATES(3))+RATES(8)
      ALGBRC(88) = ( ( CONSTS(91) ** CONSTS(133)*CONSTS(92))*(STATES(12)/CONSTS(122) ** CONSTS(94) - STATES(19)/CONSTS(88) ** CONSTS(94)))/((1.00000+STATES(12)/CONSTS(122) ** CONSTS(94))+STATES(19)/CONSTS(88) ** CONSTS(94))
      RATES(12) = (( - ALGBRC(88)*CONSTS(132))/CONSTS(127) - ALGBRC(36))+ (CONSTS(29)/CONSTS(127))*(STATES(14) - STATES(12))
      ALGBRC(35) = RATES(7)+RATES(5)
      ALGBRC(85) =  ((1.00000/CONSTS(110))/2.00000)*log(CONSTS(52)/STATES(14))
      ALGBRC(87) =  ( CONSTS(128)*CONSTS(42))*(STATES(21) - ALGBRC(85))
      ALGBRC(39) =  (( ( ( CONSTS(106)*4.00000)*( ( STATES(21)*CONSTS(32))*CONSTS(110)))*( ( 0.341000*STATES(14))*EXP( ( 2.00000*STATES(21))*CONSTS(110)) -  0.341000*CONSTS(52)))/(EXP( ( 2.00000*STATES(21))*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(40) =  ( ( ( ( ( CONSTS(109)*ALGBRC(39))*STATES(22))*STATES(23))*((1.00000 - STATES(25))+CONSTS(46)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(61) = 1.00000/(1.00000+CONSTS(67)/STATES(14) ** 2.00000)
      ALGBRC(66) =  ( EXP( ( CONSTS(74)*STATES(21))*CONSTS(110))*STATES(18) ** 3.00000)*CONSTS(52)
      ALGBRC(67) =  ( EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110))*CONSTS(54) ** 3.00000)*STATES(14)
      ALGBRC(68) = ((( ( CONSTS(68)*CONSTS(54) ** 3.00000)*(1.00000+STATES(18)/CONSTS(70) ** 3.00000)+ ( CONSTS(71) ** 3.00000*STATES(14))*(1.00000+STATES(14)/CONSTS(68)))+ CONSTS(69)*STATES(18) ** 3.00000)+ STATES(18) ** 3.00000*CONSTS(52))+ CONSTS(54) ** 3.00000*STATES(14)
      ALGBRC(69) = (( ( ( ( CONSTS(128)*CONSTS(117))*CONSTS(72) ** CONSTS(133))*ALGBRC(61))*(ALGBRC(66) - ALGBRC(67)))/ALGBRC(68))/(1.00000+ CONSTS(73)*EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110)))
      ALGBRC(77) =  STATES(14)*1.00000 ** 1.60000
      ALGBRC(78) = ( ( ( CONSTS(128)*CONSTS(83) ** CONSTS(133))*CONSTS(81))*ALGBRC(77))/(ALGBRC(77)+CONSTS(125))
      ALGBRC(90) = ((ALGBRC(40)+ALGBRC(87))+ALGBRC(78)) -  2.00000*ALGBRC(69)
      RATES(14) = ((( - ALGBRC(90)*CONSTS(30))/( ( CONSTS(131)*2.00000)*CONSTS(32))+ (CONSTS(31)/CONSTS(131))*(STATES(13) - STATES(14)))+ (CONSTS(29)/CONSTS(131))*(STATES(12) - STATES(14))) - ALGBRC(35)
      RATES(19) = (ALGBRC(88) - (( ALGBRC(86)*CONSTS(127))/CONSTS(132)+ALGBRC(84))) - RATES(20)
      ALGBRC(44) =  (( ( ( ( CONSTS(108)*STATES(21))*CONSTS(32))*CONSTS(110))*( ( 0.750000*STATES(17))*EXP( STATES(21)*CONSTS(110)) -  0.750000*CONSTS(54)))/(EXP( STATES(21)*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(45) =  ( ( ( ( ( CONSTS(51)*ALGBRC(44))*STATES(22))*STATES(23))*((1.00000 - STATES(24))+CONSTS(47)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(103) =  (1.00000/CONSTS(110))*log(CONSTS(54)/STATES(17))
      ALGBRC(104) =  ( ( ( ( CONSTS(43)*CONSTS(116))*STATES(34) ** 3.00000)*STATES(32))*STATES(33))*(STATES(21) - ALGBRC(103))
      ALGBRC(105) =  ( CONSTS(43)*CONSTS(65))*(STATES(21) - ALGBRC(103))
      ALGBRC(70) = 1.00000/((1.00000+ 0.124500*EXP( ( - 0.100000*STATES(21))*CONSTS(110)))+ ( 0.0365000*CONSTS(119))*EXP( - STATES(21)*CONSTS(110)))
      ALGBRC(72) = (( ( ( CONSTS(43)*CONSTS(75))*ALGBRC(70))*CONSTS(53))/(1.00000+CONSTS(118)/STATES(17) ** 4.00000))/(CONSTS(53)+CONSTS(76))
      ALGBRC(106) =  ( ( ( CONSTS(43)*CONSTS(120))*STATES(36) ** 3.00000)*STATES(35))*(STATES(21) - ALGBRC(103))
      ALGBRC(115) = ((((ALGBRC(104)+ALGBRC(105))+ 3.00000*ALGBRC(65))+ 3.00000*ALGBRC(72))+ALGBRC(45))+ALGBRC(106)
      RATES(17) = (( - ALGBRC(115)*CONSTS(30))/( CONSTS(124)*CONSTS(32))+ (CONSTS(37)/CONSTS(124))*(STATES(18) - STATES(17))) - RATES(15)
      ALGBRC(46) =  (( ( ( ( CONSTS(108)*STATES(21))*CONSTS(32))*CONSTS(110))*( ( 0.750000*STATES(18))*EXP( STATES(21)*CONSTS(110)) -  0.750000*CONSTS(54)))/(EXP( STATES(21)*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(47) =  ( ( ( ( ( CONSTS(109)*ALGBRC(46))*STATES(22))*STATES(23))*((1.00000 - STATES(25))+CONSTS(46)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(107) =  (1.00000/CONSTS(110))*log(CONSTS(54)/STATES(18))
      ALGBRC(108) =  ( ( ( ( CONSTS(128)*CONSTS(116))*STATES(34) ** 3.00000)*STATES(32))*STATES(33))*(STATES(21) - ALGBRC(107))
      ALGBRC(110) =  ( CONSTS(128)*CONSTS(65))*(STATES(21) - ALGBRC(107))
      ALGBRC(73) = (( ( ( CONSTS(128)*CONSTS(75))*ALGBRC(70))*CONSTS(53))/(1.00000+CONSTS(118)/STATES(18) ** 4.00000))/(CONSTS(53)+CONSTS(76))
      ALGBRC(112) =  ( ( ( CONSTS(128)*CONSTS(120))*STATES(36) ** 3.00000)*STATES(35))*(STATES(21) - ALGBRC(107))
      ALGBRC(116) = ((((ALGBRC(108)+ALGBRC(110))+ 3.00000*ALGBRC(69))+ 3.00000*ALGBRC(73))+ALGBRC(47))+ALGBRC(112)
      RATES(18) = ((( - ALGBRC(116)*CONSTS(30))/( CONSTS(131)*CONSTS(32))+ (CONSTS(37)/CONSTS(131))*(STATES(17) - STATES(18)))+ (CONSTS(38)/CONSTS(131))*(STATES(29) - STATES(18))) - RATES(16)
      ALGBRC(91) = ALGBRC(83)+ALGBRC(90)
      ALGBRC(48) =  CONSTS(55)*(STATES(21) - CONSTS(126))
      ALGBRC(50) =  (( CONSTS(43)*CONSTS(56))/(1.00000+CONSTS(57)/STATES(13)))*(STATES(21) - CONSTS(126))
      ALGBRC(52) =  (( CONSTS(128)*CONSTS(56))/(1.00000+CONSTS(57)/STATES(14)))*(STATES(21) - CONSTS(126))
      ALGBRC(53) = ALGBRC(50)+ALGBRC(52)
      ALGBRC(79) = ALGBRC(53)+ALGBRC(48)
      ALGBRC(117) = ALGBRC(115)+ALGBRC(116)
      ALGBRC(42) =  (( ( ( ( CONSTS(107)*STATES(21))*CONSTS(32))*CONSTS(110))*( ( 0.750000*STATES(26))*EXP( STATES(21)*CONSTS(110)) -  0.750000*CONSTS(53)))/(EXP( STATES(21)*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(43) =  ( ( ( ( ALGBRC(42)*STATES(22))*STATES(23))*( CONSTS(51)*(CONSTS(47)+(1.00000 - STATES(24)))+ CONSTS(109)*(CONSTS(46)+(1.00000 - STATES(25)))))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(92) =  (1.00000/CONSTS(110))*log(CONSTS(53)/STATES(26))
      ALGBRC(93) =  1.00000*(1.02000/(1.00000+EXP( 0.238500*((STATES(21) - ALGBRC(92)) - 59.2150))))
      ALGBRC(94) =  1.00000*(( 0.491240*EXP( 0.0803200*((STATES(21)+5.47600) - ALGBRC(92)))+EXP( 0.0617500*((STATES(21) - ALGBRC(92)) - 594.310)))/(1.00000+EXP( - 0.514300*((STATES(21) - ALGBRC(92))+4.75300))))
      ALGBRC(95) = ALGBRC(93)/(ALGBRC(93)+ALGBRC(94))
      ALGBRC(96) =  ( CONSTS(111)*ALGBRC(95))*(STATES(21) - ALGBRC(92))
      ALGBRC(54) = 1.00000/(1.00000+EXP(7.48800 - STATES(21)/5.98000))
      ALGBRC(97) =  ( ( CONSTS(43)*CONSTS(59))*ALGBRC(54))*(STATES(21) - ALGBRC(92))
      ALGBRC(98) =  ( ( CONSTS(128)*CONSTS(59))*ALGBRC(54))*(STATES(21) - ALGBRC(92))
      ALGBRC(99) = ALGBRC(97)+ALGBRC(98)
      ALGBRC(55) = 1.00000/(1.00000+EXP((STATES(21)+74.0000)/24.0000))
      ALGBRC(100) =  ( ( CONSTS(112)*STATES(27))*ALGBRC(55))*(STATES(21) - ALGBRC(92))
      ALGBRC(56) =  (1.00000/CONSTS(110))*log((CONSTS(53)+ CONSTS(62)*CONSTS(54))/(STATES(26)+ CONSTS(62)*STATES(29)))
      ALGBRC(57) =  ( ( CONSTS(43)*CONSTS(113))*STATES(28) ** 2.00000)*(STATES(21) - ALGBRC(56))
      ALGBRC(58) =  ( ( CONSTS(128)*CONSTS(114))*STATES(28) ** 2.00000)*(STATES(21) - ALGBRC(56))
      ALGBRC(59) = ALGBRC(57)+ALGBRC(58)
      ALGBRC(101) =  ( ( CONSTS(115)*STATES(30))*STATES(31))*(STATES(21) - ALGBRC(92))
      ALGBRC(74) = ALGBRC(72)+ALGBRC(73)
      ALGBRC(102) =  ( ( CONSTS(121)*STATES(37))*STATES(38))*(STATES(21) - ALGBRC(92))
      ALGBRC(114) = ((((((ALGBRC(102)+ALGBRC(100))+ALGBRC(59))+ALGBRC(96)) -  2.00000*ALGBRC(74))+ALGBRC(43))+ALGBRC(99))+ALGBRC(101)
      ALGBRC(118) = ((ALGBRC(117)+ALGBRC(79))+ALGBRC(91))+ALGBRC(114)
      ALGBRC(119) = TERNRY((VOI - CONSTS(101)) -  CONSTS(102)*INT((VOI - CONSTS(101))/CONSTS(102)).LT.CONSTS(100), 1.00000, 0.00000)
      ALGBRC(120) =  ALGBRC(119)*CONSTS(99)
      RATES(21) = - (ALGBRC(118)+ALGBRC(120))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(10) = 1.00000/(1.00000+EXP((STATES(21)+91.0000)/6.10000))
      ALGBRC(1) = 1.00000/(1.00000+EXP(- ((STATES(21)+ 3.00000*CONSTS(24))+9.00000)/6.00000))
      ALGBRC(15) = ( ALGBRC(1)*(1.00000 - EXP(- ((STATES(21)+ 3.00000*CONSTS(24))+9.00000)/6.00000)))/( 0.0350000*((STATES(21)+ 3.00000*CONSTS(24))+9.00000))
      ALGBRC(2) = 1.00000/(1.00000+EXP(((STATES(21)+ 3.00000*CONSTS(24))+30.0000)/7.00000))+0.200000/(1.00000+EXP(((50.0000 - STATES(21)) -  3.00000*CONSTS(24))/20.0000))
      ALGBRC(16) = 1.00000/( 0.0197000*EXP(-  0.0337000*((STATES(21)+ 3.00000*CONSTS(24))+25.0000) ** 2.00000)+0.0200000)
      ALGBRC(3) = 1.00000/(1.00000+EXP(- (STATES(21)+10.0000)/5.00000))
      ALGBRC(17) = ( ((550.000)/(1.00000+EXP((- 22.0000 - STATES(21))/9.00000)))*6.00000)/(1.00000+EXP((STATES(21)+11.0000)/9.00000))+230.000/(1.00000+EXP((STATES(21)+40.0000)/20.0000))
      ALGBRC(4) = 1.00000/(1.00000+EXP(- ((STATES(21)+ 40.0000*CONSTS(24))+3.80000)/14.2500))
      ALGBRC(18) = 990.100/(1.00000+EXP(- ((STATES(21)+ 40.0000*CONSTS(24))+2.43600)/14.1200))
      ALGBRC(5) = 1.00000/(1.00000+EXP((STATES(21)+6.00000)/- 8.60000))
      ALGBRC(19) = 9.00000/(1.00000+EXP((STATES(21)+5.00000)/12.0000))+0.500000
      ALGBRC(6) = 1.00000/(1.00000+EXP((STATES(21)+7.50000)/10.0000))
      ALGBRC(20) = 590.000/(1.00000+EXP((STATES(21)+60.0000)/10.0000))+3050.00
      ALGBRC(9) = 1.00000/1.00000+EXP(- (56.8600+STATES(21))/9.03000) ** 2.00000
      ALGBRC(23) =  0.129200*EXP(- (STATES(21)+45.7900)/15.5400 ** 2.00000)+ 0.0648700*EXP(- (STATES(21) - 4.82300)/51.1200 ** 2.00000)
      ALGBRC(11) = ( 0.320000*(STATES(21)+47.1300))/(1.00000 - EXP( - 0.100000*(STATES(21)+47.1300)))
      ALGBRC(24) =  0.0800000*EXP(- STATES(21)/11.0000)
      ALGBRC(12) = 1.00000/(1.00000+EXP(- (STATES(21)+1.00000)/11.0000))
      ALGBRC(25) =  3.50000*EXP(- STATES(21)/30.0000 ** 2.00000)+1.50000
      ALGBRC(13) = 1.00000/(1.00000+EXP((STATES(21)+40.5000)/11.5000))
      ALGBRC(26) =  25.6350*EXP(- (STATES(21)+52.4500)/15.8827 ** 2.00000)+24.1400
      ALGBRC(28) = 1.00000/1.00000+EXP((STATES(21)+71.5500)/7.43000) ** 2.00000
      ALGBRC(7) =  (TERNRY(STATES(21).GE.- 40.0000, 0.00000,  0.0570000*EXP(- (STATES(21)+80.0000)/6.80000)))*1.00000
      ALGBRC(21) =  (TERNRY(STATES(21).GE.- 40.0000, 0.770000/( 0.130000*(1.00000+EXP(- (STATES(21)+10.6600)/11.1000))),  2.70000*EXP( 0.0790000*STATES(21))+ ( 3.10000*10.0000 ** 5.00000)*EXP( 0.348500*STATES(21))))*1.00000
      ALGBRC(31) = 1.00000/(ALGBRC(7)+ALGBRC(21))
      ALGBRC(29) = 1.00000/1.00000+EXP((STATES(21)+71.5500)/7.43000) ** 2.00000
      ALGBRC(8) =  (TERNRY(STATES(21).GE.- 40.0000, 0.00000,  (( ( ( - 2.54280*10.0000 ** 4.00000)*EXP( 0.244400*STATES(21)) -  ( 6.94800*10.0000 ** - 6.00000)*EXP( - 0.0439100*STATES(21)))*(STATES(21)+37.7800))/(1.00000+EXP( 0.311000*(STATES(21)+79.2300))))*1.00000))*1.00000
      ALGBRC(22) =  (TERNRY(STATES(21).GE.- 40.0000, ( 0.600000*EXP( 0.0570000*STATES(21)))/(1.00000+EXP( - 0.100000*(STATES(21)+32.0000))), ( 0.0242400*EXP( - 0.0105200*STATES(21)))/(1.00000+EXP( - 0.137800*(STATES(21)+40.1400)))))*1.00000
      ALGBRC(32) = 1.00000/(ALGBRC(8)+ALGBRC(22))
      ALGBRC(14) = ((1.00000 - STATES(41)) - STATES(40)) - STATES(39)
      ALGBRC(27) = CONSTS(89) - (CONSTS(89) - CONSTS(90))/(1.00000+CONSTS(93)/STATES(19) ** 2.50000)
      ALGBRC(30) =  CONSTS(95)*ALGBRC(27)
      ALGBRC(33) = CONSTS(123)/ALGBRC(27)
      ALGBRC(34) = RATES(6)+RATES(4)
      ALGBRC(81) =  ((1.00000/CONSTS(110))/2.00000)*log(CONSTS(52)/STATES(13))
      ALGBRC(82) =  ( CONSTS(43)*CONSTS(42))*(STATES(21) - ALGBRC(81))
      ALGBRC(37) =  (( ( ( CONSTS(106)*4.00000)*( ( STATES(21)*CONSTS(32))*CONSTS(110)))*( ( 0.341000*STATES(13))*EXP( ( 2.00000*STATES(21))*CONSTS(110)) -  0.341000*CONSTS(52)))/(EXP( ( 2.00000*STATES(21))*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(38) =  ( ( ( ( ( CONSTS(51)*ALGBRC(37))*STATES(22))*STATES(23))*((1.00000 - STATES(24))+CONSTS(47)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(60) = 1.00000/(1.00000+CONSTS(67)/STATES(13) ** 2.00000)
      ALGBRC(62) =  ( EXP( ( CONSTS(74)*STATES(21))*CONSTS(110))*STATES(17) ** 3.00000)*CONSTS(52)
      ALGBRC(63) =  ( EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110))*CONSTS(54) ** 3.00000)*STATES(13)
      ALGBRC(64) = ((( ( CONSTS(68)*CONSTS(54) ** 3.00000)*(1.00000+STATES(17)/CONSTS(70) ** 3.00000)+ ( CONSTS(71) ** 3.00000*STATES(13))*(1.00000+STATES(13)/CONSTS(68)))+ CONSTS(69)*STATES(17) ** 3.00000)+ STATES(17) ** 3.00000*CONSTS(52))+ CONSTS(54) ** 3.00000*STATES(13)
      ALGBRC(65) = (( ( ( ( CONSTS(43)*CONSTS(117))*CONSTS(72) ** CONSTS(133))*ALGBRC(60))*(ALGBRC(62) - ALGBRC(63)))/ALGBRC(64))/(1.00000+ CONSTS(73)*EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110)))
      ALGBRC(75) =  STATES(13)*1.00000 ** 1.60000
      ALGBRC(76) = ( ( ( CONSTS(43)*CONSTS(83) ** CONSTS(133))*CONSTS(81))*ALGBRC(75))/(ALGBRC(75)+CONSTS(105))
      ALGBRC(83) = ((ALGBRC(38)+ALGBRC(82))+ALGBRC(76)) -  2.00000*ALGBRC(65)
      ALGBRC(84) =  ( CONSTS(98)*STATES(40))*(STATES(19) - STATES(13))
      ALGBRC(86) =  ( (1.00000+ 0.250000*CONSTS(35))*(STATES(19) - STATES(13)))*CONSTS(87)
      ALGBRC(36) = (((((RATES(11)+RATES(9))+RATES(10))+RATES(1))+RATES(2))+RATES(3))+RATES(8)
      ALGBRC(88) = ( ( CONSTS(91) ** CONSTS(133)*CONSTS(92))*(STATES(12)/CONSTS(122) ** CONSTS(94) - STATES(19)/CONSTS(88) ** CONSTS(94)))/((1.00000+STATES(12)/CONSTS(122) ** CONSTS(94))+STATES(19)/CONSTS(88) ** CONSTS(94))
      ALGBRC(35) = RATES(7)+RATES(5)
      ALGBRC(85) =  ((1.00000/CONSTS(110))/2.00000)*log(CONSTS(52)/STATES(14))
      ALGBRC(87) =  ( CONSTS(128)*CONSTS(42))*(STATES(21) - ALGBRC(85))
      ALGBRC(39) =  (( ( ( CONSTS(106)*4.00000)*( ( STATES(21)*CONSTS(32))*CONSTS(110)))*( ( 0.341000*STATES(14))*EXP( ( 2.00000*STATES(21))*CONSTS(110)) -  0.341000*CONSTS(52)))/(EXP( ( 2.00000*STATES(21))*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(40) =  ( ( ( ( ( CONSTS(109)*ALGBRC(39))*STATES(22))*STATES(23))*((1.00000 - STATES(25))+CONSTS(46)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(61) = 1.00000/(1.00000+CONSTS(67)/STATES(14) ** 2.00000)
      ALGBRC(66) =  ( EXP( ( CONSTS(74)*STATES(21))*CONSTS(110))*STATES(18) ** 3.00000)*CONSTS(52)
      ALGBRC(67) =  ( EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110))*CONSTS(54) ** 3.00000)*STATES(14)
      ALGBRC(68) = ((( ( CONSTS(68)*CONSTS(54) ** 3.00000)*(1.00000+STATES(18)/CONSTS(70) ** 3.00000)+ ( CONSTS(71) ** 3.00000*STATES(14))*(1.00000+STATES(14)/CONSTS(68)))+ CONSTS(69)*STATES(18) ** 3.00000)+ STATES(18) ** 3.00000*CONSTS(52))+ CONSTS(54) ** 3.00000*STATES(14)
      ALGBRC(69) = (( ( ( ( CONSTS(128)*CONSTS(117))*CONSTS(72) ** CONSTS(133))*ALGBRC(61))*(ALGBRC(66) - ALGBRC(67)))/ALGBRC(68))/(1.00000+ CONSTS(73)*EXP( ( (CONSTS(74) - 1.00000)*STATES(21))*CONSTS(110)))
      ALGBRC(77) =  STATES(14)*1.00000 ** 1.60000
      ALGBRC(78) = ( ( ( CONSTS(128)*CONSTS(83) ** CONSTS(133))*CONSTS(81))*ALGBRC(77))/(ALGBRC(77)+CONSTS(125))
      ALGBRC(90) = ((ALGBRC(40)+ALGBRC(87))+ALGBRC(78)) -  2.00000*ALGBRC(69)
      ALGBRC(44) =  (( ( ( ( CONSTS(108)*STATES(21))*CONSTS(32))*CONSTS(110))*( ( 0.750000*STATES(17))*EXP( STATES(21)*CONSTS(110)) -  0.750000*CONSTS(54)))/(EXP( STATES(21)*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(45) =  ( ( ( ( ( CONSTS(51)*ALGBRC(44))*STATES(22))*STATES(23))*((1.00000 - STATES(24))+CONSTS(47)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(103) =  (1.00000/CONSTS(110))*log(CONSTS(54)/STATES(17))
      ALGBRC(104) =  ( ( ( ( CONSTS(43)*CONSTS(116))*STATES(34) ** 3.00000)*STATES(32))*STATES(33))*(STATES(21) - ALGBRC(103))
      ALGBRC(105) =  ( CONSTS(43)*CONSTS(65))*(STATES(21) - ALGBRC(103))
      ALGBRC(70) = 1.00000/((1.00000+ 0.124500*EXP( ( - 0.100000*STATES(21))*CONSTS(110)))+ ( 0.0365000*CONSTS(119))*EXP( - STATES(21)*CONSTS(110)))
      ALGBRC(72) = (( ( ( CONSTS(43)*CONSTS(75))*ALGBRC(70))*CONSTS(53))/(1.00000+CONSTS(118)/STATES(17) ** 4.00000))/(CONSTS(53)+CONSTS(76))
      ALGBRC(106) =  ( ( ( CONSTS(43)*CONSTS(120))*STATES(36) ** 3.00000)*STATES(35))*(STATES(21) - ALGBRC(103))
      ALGBRC(115) = ((((ALGBRC(104)+ALGBRC(105))+ 3.00000*ALGBRC(65))+ 3.00000*ALGBRC(72))+ALGBRC(45))+ALGBRC(106)
      ALGBRC(46) =  (( ( ( ( CONSTS(108)*STATES(21))*CONSTS(32))*CONSTS(110))*( ( 0.750000*STATES(18))*EXP( STATES(21)*CONSTS(110)) -  0.750000*CONSTS(54)))/(EXP( STATES(21)*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(47) =  ( ( ( ( ( CONSTS(109)*ALGBRC(46))*STATES(22))*STATES(23))*((1.00000 - STATES(25))+CONSTS(46)))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(107) =  (1.00000/CONSTS(110))*log(CONSTS(54)/STATES(18))
      ALGBRC(108) =  ( ( ( ( CONSTS(128)*CONSTS(116))*STATES(34) ** 3.00000)*STATES(32))*STATES(33))*(STATES(21) - ALGBRC(107))
      ALGBRC(110) =  ( CONSTS(128)*CONSTS(65))*(STATES(21) - ALGBRC(107))
      ALGBRC(73) = (( ( ( CONSTS(128)*CONSTS(75))*ALGBRC(70))*CONSTS(53))/(1.00000+CONSTS(118)/STATES(18) ** 4.00000))/(CONSTS(53)+CONSTS(76))
      ALGBRC(112) =  ( ( ( CONSTS(128)*CONSTS(120))*STATES(36) ** 3.00000)*STATES(35))*(STATES(21) - ALGBRC(107))
      ALGBRC(116) = ((((ALGBRC(108)+ALGBRC(110))+ 3.00000*ALGBRC(69))+ 3.00000*ALGBRC(73))+ALGBRC(47))+ALGBRC(112)
      ALGBRC(91) = ALGBRC(83)+ALGBRC(90)
      ALGBRC(48) =  CONSTS(55)*(STATES(21) - CONSTS(126))
      ALGBRC(50) =  (( CONSTS(43)*CONSTS(56))/(1.00000+CONSTS(57)/STATES(13)))*(STATES(21) - CONSTS(126))
      ALGBRC(52) =  (( CONSTS(128)*CONSTS(56))/(1.00000+CONSTS(57)/STATES(14)))*(STATES(21) - CONSTS(126))
      ALGBRC(53) = ALGBRC(50)+ALGBRC(52)
      ALGBRC(79) = ALGBRC(53)+ALGBRC(48)
      ALGBRC(117) = ALGBRC(115)+ALGBRC(116)
      ALGBRC(42) =  (( ( ( ( CONSTS(107)*STATES(21))*CONSTS(32))*CONSTS(110))*( ( 0.750000*STATES(26))*EXP( STATES(21)*CONSTS(110)) -  0.750000*CONSTS(53)))/(EXP( STATES(21)*CONSTS(110)) - 1.00000))*CONSTS(45)
      ALGBRC(43) =  ( ( ( ( ALGBRC(42)*STATES(22))*STATES(23))*( CONSTS(51)*(CONSTS(47)+(1.00000 - STATES(24)))+ CONSTS(109)*(CONSTS(46)+(1.00000 - STATES(25)))))*CONSTS(44) ** CONSTS(133))*0.450000
      ALGBRC(92) =  (1.00000/CONSTS(110))*log(CONSTS(53)/STATES(26))
      ALGBRC(93) =  1.00000*(1.02000/(1.00000+EXP( 0.238500*((STATES(21) - ALGBRC(92)) - 59.2150))))
      ALGBRC(94) =  1.00000*(( 0.491240*EXP( 0.0803200*((STATES(21)+5.47600) - ALGBRC(92)))+EXP( 0.0617500*((STATES(21) - ALGBRC(92)) - 594.310)))/(1.00000+EXP( - 0.514300*((STATES(21) - ALGBRC(92))+4.75300))))
      ALGBRC(95) = ALGBRC(93)/(ALGBRC(93)+ALGBRC(94))
      ALGBRC(96) =  ( CONSTS(111)*ALGBRC(95))*(STATES(21) - ALGBRC(92))
      ALGBRC(54) = 1.00000/(1.00000+EXP(7.48800 - STATES(21)/5.98000))
      ALGBRC(97) =  ( ( CONSTS(43)*CONSTS(59))*ALGBRC(54))*(STATES(21) - ALGBRC(92))
      ALGBRC(98) =  ( ( CONSTS(128)*CONSTS(59))*ALGBRC(54))*(STATES(21) - ALGBRC(92))
      ALGBRC(99) = ALGBRC(97)+ALGBRC(98)
      ALGBRC(55) = 1.00000/(1.00000+EXP((STATES(21)+74.0000)/24.0000))
      ALGBRC(100) =  ( ( CONSTS(112)*STATES(27))*ALGBRC(55))*(STATES(21) - ALGBRC(92))
      ALGBRC(56) =  (1.00000/CONSTS(110))*log((CONSTS(53)+ CONSTS(62)*CONSTS(54))/(STATES(26)+ CONSTS(62)*STATES(29)))
      ALGBRC(57) =  ( ( CONSTS(43)*CONSTS(113))*STATES(28) ** 2.00000)*(STATES(21) - ALGBRC(56))
      ALGBRC(58) =  ( ( CONSTS(128)*CONSTS(114))*STATES(28) ** 2.00000)*(STATES(21) - ALGBRC(56))
      ALGBRC(59) = ALGBRC(57)+ALGBRC(58)
      ALGBRC(101) =  ( ( CONSTS(115)*STATES(30))*STATES(31))*(STATES(21) - ALGBRC(92))
      ALGBRC(74) = ALGBRC(72)+ALGBRC(73)
      ALGBRC(102) =  ( ( CONSTS(121)*STATES(37))*STATES(38))*(STATES(21) - ALGBRC(92))
      ALGBRC(114) = ((((((ALGBRC(102)+ALGBRC(100))+ALGBRC(59))+ALGBRC(96)) -  2.00000*ALGBRC(74))+ALGBRC(43))+ALGBRC(99))+ALGBRC(101)
      ALGBRC(118) = ((ALGBRC(117)+ALGBRC(79))+ALGBRC(91))+ALGBRC(114)
      ALGBRC(119) = TERNRY((VOI - CONSTS(101)) -  CONSTS(102)*INT((VOI - CONSTS(101))/CONSTS(102)).LT.CONSTS(100), 1.00000, 0.00000)
      ALGBRC(120) =  ALGBRC(119)*CONSTS(99)
      ALGBRC(41) = ALGBRC(38)+ALGBRC(40)
      ALGBRC(49) = ALGBRC(45)+ALGBRC(47)
      ALGBRC(51) = (ALGBRC(41)+ALGBRC(43))+ALGBRC(49)
      ALGBRC(71) = ALGBRC(65)+ALGBRC(69)
      ALGBRC(80) = ALGBRC(76)+ALGBRC(78)
      ALGBRC(89) = ALGBRC(82)+ALGBRC(87)
      ALGBRC(109) = ALGBRC(104)+ALGBRC(108)
      ALGBRC(111) = ALGBRC(105)+ALGBRC(110)
      ALGBRC(113) = ALGBRC(106)+ALGBRC(112)
      RETURN
      END
      REAL FUNCTION TERNRY(TEST, VALA, VALB)
      LOGICAL TEST
      REAL VALA, VALB
      IF (TEST) THEN
        TERNRY = VALA
      ELSE
        TERNRY = VALB
      ENDIF
      RETURN
      END