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 115 entries in the algebraic variable array.
C There are a total of 39 entries in each of the rate and state variable arrays.
C There are a total of 127 entries in the constant variable array.
C
C
C ALGBRC(23) is I_app in component Protocol (uA_per_uF).
C VOI is time in component environment (msec).
C CONSTS(1) is V_hold in component Protocol (mV).
C CONSTS(2) is V_test in component Protocol (mV).
C ALGBRC(10) is V_clamp in component Protocol (mV).
C STATES(1) is V_m in component membrane_potential (mV).
C CONSTS(3) is R_clamp in component Protocol (uF_per_mS).
C CONSTS(4) is epi in component parameters (dimensionless).
C CONSTS(5) is R in component parameters (joule_per_kelvin_per_kilomole).
C CONSTS(99) is Frdy in component parameters (coulomb_per_mole).
C CONSTS(109) is Temp in component parameters (kelvin).
C CONSTS(113) is FoRT in component parameters (per_mV).
C CONSTS(6) is Cmem in component parameters (farad).
C CONSTS(114) is Qpow in component parameters (dimensionless).
C CONSTS(7) is cellLength in component parameters (um).
C CONSTS(100) is cellRadius in component parameters (um).
C CONSTS(8) is junctionLength in component parameters (um).
C CONSTS(101) is junctionRadius in component parameters (um).
C CONSTS(9) is distSLcyto in component parameters (um).
C CONSTS(10) is distJuncSL in component parameters (um).
C CONSTS(11) is DcaJuncSL in component parameters (cm2_per_sec).
C CONSTS(12) is DcaSLcyto in component parameters (cm2_per_sec).
C CONSTS(13) is DnaJuncSL in component parameters (cm2_per_sec).
C CONSTS(14) is DnaSLcyto in component parameters (cm2_per_sec).
C CONSTS(110) is Vcell in component parameters (liter).
C CONSTS(115) is Vmyo in component parameters (liter).
C CONSTS(116) is Vsr in component parameters (liter).
C CONSTS(117) is Vsl in component parameters (liter).
C CONSTS(118) is Vjunc in component parameters (liter).
C CONSTS(111) is SAjunc in component parameters (um2).
C CONSTS(112) is SAsl in component parameters (um2).
C CONSTS(15) is J_ca_juncsl in component parameters (liters_per_msec).
C CONSTS(16) is J_ca_slmyo in component parameters (liters_per_msec).
C CONSTS(17) is J_na_juncsl in component parameters (liters_per_msec).
C CONSTS(18) is J_na_slmyo in component parameters (liters_per_msec).
C CONSTS(19) is Fjunc in component parameters (dimensionless).
C CONSTS(102) is Fsl in component parameters (dimensionless).
C CONSTS(20) is Fjunc_CaL in component parameters (dimensionless).
C CONSTS(103) is Fsl_CaL in component parameters (dimensionless).
C CONSTS(119) is Cli in component parameters (mM).
C CONSTS(120) is Clo in component parameters (mM).
C CONSTS(21) is Ko in component parameters (mM).
C CONSTS(22) is Nao in component parameters (mM).
C CONSTS(23) is Cao in component parameters (mM).
C CONSTS(24) is Mgi in component parameters (mM).
C ALGBRC(27) is ena_junc in component parameters (mV).
C ALGBRC(31) is ena_sl in component parameters (mV).
C ALGBRC(33) is ek in component parameters (mV).
C ALGBRC(34) is eca_junc in component parameters (mV).
C ALGBRC(35) is eca_sl in component parameters (mV).
C CONSTS(126) is ecl in component parameters (mV).
C CONSTS(25) is GNa in component parameters (mS_per_uF).
C CONSTS(26) is GNaB in component parameters (mS_per_uF).
C CONSTS(27) is IbarNaK in component parameters (uA_per_uF).
C CONSTS(28) is KmNaip in component parameters (mM).
C CONSTS(29) is KmKo in component parameters (mM).
C CONSTS(30) is Q10NaK in component parameters (dimensionless).
C CONSTS(31) is Q10KmNai in component parameters (dimensionless).
C CONSTS(32) is pNaK in component parameters (dimensionless).
C CONSTS(33) is gkp in component parameters (mS_per_uF).
C CONSTS(34) is GClCa in component parameters (mS_per_uF).
C CONSTS(35) is GClB in component parameters (mS_per_uF).
C CONSTS(36) is KdClCa in component parameters (mM).
C CONSTS(37) is pNa in component parameters (cm_per_sec).
C CONSTS(38) is pCa in component parameters (cm_per_sec).
C CONSTS(39) is pK in component parameters (cm_per_sec).
C CONSTS(40) is Q10CaL in component parameters (dimensionless).
C CONSTS(41) is IbarNCX in component parameters (uA_per_uF).
C CONSTS(42) is KmCai in component parameters (mM).
C CONSTS(43) is KmCao in component parameters (mM).
C CONSTS(44) is KmNai in component parameters (mM).
C CONSTS(45) is KmNao in component parameters (mM).
C CONSTS(46) is ksat in component parameters (dimensionless).
C CONSTS(47) is nu in component parameters (dimensionless).
C CONSTS(48) is Kdact in component parameters (mM).
C CONSTS(49) is Q10NCX in component parameters (dimensionless).
C CONSTS(50) is IbarSLCaP in component parameters (uA_per_uF).
C CONSTS(51) is KmPCa in component parameters (mM).
C CONSTS(52) is GCaB in component parameters (mS_per_uF).
C CONSTS(53) is Q10SLCaP in component parameters (dimensionless).
C CONSTS(54) is Q10SRCaP in component parameters (dimensionless).
C CONSTS(55) is Vmax_SRCaP in component parameters (mM_per_msec).
C CONSTS(56) is Kmf in component parameters (mM).
C CONSTS(57) is Kmr in component parameters (mM).
C CONSTS(58) is hillSRCaP in component parameters (dimensionless).
C CONSTS(59) is ks in component parameters (per_msec).
C CONSTS(60) is koCa in component parameters (per_mM2_per_msec).
C CONSTS(61) is kom in component parameters (per_msec).
C CONSTS(108) is kiCa in component parameters (per_mM_per_msec).
C CONSTS(62) is kim in component parameters (per_msec).
C CONSTS(63) is ec50SR in component parameters (mM).
C CONSTS(64) is Bmax_Naj in component parameters (mM).
C CONSTS(65) is Bmax_Nasl in component parameters (mM).
C CONSTS(66) is koff_na in component parameters (per_msec).
C CONSTS(67) is kon_na in component parameters (per_mM_per_msec).
C CONSTS(68) is Bmax_TnClow in component parameters (mM).
C CONSTS(69) is koff_tncl in component parameters (per_msec).
C CONSTS(70) is kon_tncl in component parameters (per_mM_per_msec).
C CONSTS(71) is Bmax_TnChigh in component parameters (mM).
C CONSTS(72) is koff_tnchca in component parameters (per_msec).
C CONSTS(73) is kon_tnchca in component parameters (per_mM_per_msec).
C CONSTS(74) is koff_tnchmg in component parameters (per_msec).
C CONSTS(75) is kon_tnchmg in component parameters (per_mM_per_msec).
C CONSTS(76) is Bmax_CaM in component parameters (mM).
C CONSTS(77) is koff_cam in component parameters (per_msec).
C CONSTS(78) is kon_cam in component parameters (per_mM_per_msec).
C CONSTS(79) is Bmax_myosin in component parameters (mM).
C CONSTS(80) is koff_myoca in component parameters (per_msec).
C CONSTS(81) is kon_myoca in component parameters (per_mM_per_msec).
C CONSTS(82) is koff_myomg in component parameters (per_msec).
C CONSTS(83) is kon_myomg in component parameters (per_mM_per_msec).
C CONSTS(84) is Bmax_SR in component parameters (mM).
C CONSTS(85) is koff_sr in component parameters (per_msec).
C CONSTS(86) is kon_sr in component parameters (per_mM_per_msec).
C CONSTS(121) is Bmax_SLlowsl in component parameters (mM).
C CONSTS(122) is Bmax_SLlowj in component parameters (mM).
C CONSTS(87) is koff_sll in component parameters (per_msec).
C CONSTS(88) is kon_sll in component parameters (per_mM_per_msec).
C CONSTS(123) is Bmax_SLhighsl in component parameters (mM).
C CONSTS(124) is Bmax_SLhighj in component parameters (mM).
C CONSTS(89) is koff_slh in component parameters (per_msec).
C CONSTS(90) is kon_slh in component parameters (per_mM_per_msec).
C CONSTS(125) is Bmax_Csqn in component parameters (mM).
C CONSTS(91) is koff_csqn in component parameters (per_msec).
C CONSTS(92) is kon_csqn in component parameters (per_mM_per_msec).
C STATES(2) is Na_j in component Na_Concentrations (mM).
C STATES(3) is Na_sl in component Na_Concentrations (mM).
C STATES(4) is K_i in component K_Concentration (mM).
C STATES(5) is Ca_j in component Ca_Concentrations (mM).
C STATES(6) is Ca_sl in component Ca_Concentrations (mM).
C ALGBRC(1) is mss in component I_Na (dimensionless).
C ALGBRC(12) is taum in component I_Na (msec).
C ALGBRC(2) is ah in component I_Na (dimensionless).
C ALGBRC(13) is bh in component I_Na (dimensionless).
C ALGBRC(25) is tauh in component I_Na (msec).
C ALGBRC(29) is hss in component I_Na (dimensionless).
C ALGBRC(3) is aj in component I_Na (dimensionless).
C ALGBRC(14) is bj in component I_Na (dimensionless).
C ALGBRC(26) is tauj in component I_Na (msec).
C ALGBRC(30) is jss in component I_Na (dimensionless).
C STATES(7) is m in component I_Na (dimensionless).
C STATES(8) is h in component I_Na (dimensionless).
C STATES(9) is j in component I_Na (dimensionless).
C ALGBRC(36) is I_Na_junc in component I_Na (uA_per_uF).
C ALGBRC(37) is I_Na_sl in component I_Na (uA_per_uF).
C ALGBRC(38) is I_Na in component I_Na (uA_per_uF).
C ALGBRC(39) is I_nabk_junc in component I_NaBK (uA_per_uF).
C ALGBRC(40) is I_nabk_sl in component I_NaBK (uA_per_uF).
C ALGBRC(41) is I_nabk in component I_NaBK (uA_per_uF).
C CONSTS(104) is sigma in component I_NaK (dimensionless).
C ALGBRC(42) is fnak in component I_NaK (dimensionless).
C ALGBRC(43) is I_nak_junc in component I_NaK (uA_per_uF).
C ALGBRC(44) is I_nak_sl in component I_NaK (uA_per_uF).
C ALGBRC(45) is I_nak in component I_NaK (uA_per_uF).
C CONSTS(105) is gkr in component I_Kr (mS_per_uF).
C ALGBRC(4) is xrss in component I_Kr (dimensionless).
C ALGBRC(15) is tauxr in component I_Kr (msec).
C STATES(10) is x_kr in component I_Kr (dimensionless).
C ALGBRC(46) is rkr in component I_Kr (dimensionless).
C ALGBRC(47) is I_kr in component I_Kr (uA_per_uF).
C ALGBRC(48) is kp_kp in component I_Kp (dimensionless).
C ALGBRC(49) is I_kp_junc in component I_Kp (uA_per_uF).
C ALGBRC(50) is I_kp_sl in component I_Kp (uA_per_uF).
C ALGBRC(51) is I_kp in component I_Kp (uA_per_uF).
C ALGBRC(52) is eks in component I_Ks (mV).
C CONSTS(93) is gks_junc in component I_Ks (mS_per_uF).
C CONSTS(94) is gks_sl in component I_Ks (mS_per_uF).
C ALGBRC(5) is xsss in component I_Ks (dimensionless).
C ALGBRC(16) is tauxs in component I_Ks (msec).
C STATES(11) is x_ks in component I_Ks (dimensionless).
C ALGBRC(53) is I_ks_junc in component I_Ks (uA_per_uF).
C ALGBRC(54) is I_ks_sl in component I_Ks (uA_per_uF).
C ALGBRC(55) is I_ks in component I_Ks (uA_per_uF).
C STATES(12) is Na_i in component Na_Concentrations (mM).
C CONSTS(106) is GtoSlow in component I_to (mS_per_uF).
C CONSTS(107) is GtoFast in component I_to (mS_per_uF).
C ALGBRC(6) is xtoss in component I_to (dimensionless).
C ALGBRC(7) is ytoss in component I_to (dimensionless).
C ALGBRC(17) is tauxtos in component I_to (msec).
C ALGBRC(18) is tauytos in component I_to (msec).
C STATES(13) is x_to_s in component I_to (dimensionless).
C STATES(14) is y_to_s in component I_to (dimensionless).
C ALGBRC(56) is I_tos in component I_to (uA_per_uF).
C ALGBRC(19) is tauxtof in component I_to (msec).
C ALGBRC(20) is tauytof in component I_to (msec).
C STATES(15) is x_to_f in component I_to (dimensionless).
C STATES(16) is y_to_f in component I_to (dimensionless).
C ALGBRC(57) is I_tof in component I_to (uA_per_uF).
C ALGBRC(58) is I_to in component I_to (uA_per_uF).
C ALGBRC(59) is aki in component I_Ki (dimensionless).
C ALGBRC(60) is bki in component I_Ki (dimensionless).
C ALGBRC(61) is kiss in component I_Ki (dimensionless).
C ALGBRC(62) is I_ki in component I_Ki (uA_per_uF).
C ALGBRC(63) is I_ClCa_junc in component I_ClCa (uA_per_uF).
C ALGBRC(64) is I_ClCa_sl in component I_ClCa (uA_per_uF).
C ALGBRC(65) is I_ClCa in component I_ClCa (uA_per_uF).
C ALGBRC(66) is I_Clbk in component I_ClCa (uA_per_uF).
C ALGBRC(8) is fss in component I_Ca (dimensionless).
C ALGBRC(9) is dss in component I_Ca (dimensionless).
C ALGBRC(21) is taud in component I_Ca (msec).
C ALGBRC(22) is tauf in component I_Ca (msec).
C STATES(17) is d in component I_Ca (dimensionless).
C STATES(18) is f in component I_Ca (dimensionless).
C STATES(19) is f_Ca_Bj in component I_Ca (dimensionless).
C STATES(20) is f_Ca_Bsl in component I_Ca (dimensionless).
C CONSTS(95) is fcaCaMSL in component I_Ca (dimensionless).
C CONSTS(96) is fcaCaj in component I_Ca (dimensionless).
C ALGBRC(67) is ibarca_j in component I_Ca (uA_per_uF).
C ALGBRC(68) is ibarca_sl in component I_Ca (uA_per_uF).
C ALGBRC(69) is ibark in component I_Ca (uA_per_uF).
C ALGBRC(70) is ibarna_j in component I_Ca (uA_per_uF).
C ALGBRC(71) is ibarna_sl in component I_Ca (uA_per_uF).
C ALGBRC(72) is I_Ca_junc in component I_Ca (uA_per_uF).
C ALGBRC(73) is I_Ca_sl in component I_Ca (uA_per_uF).
C ALGBRC(74) is I_Ca in component I_Ca (uA_per_uF).
C ALGBRC(75) is I_CaK in component I_Ca (uA_per_uF).
C ALGBRC(76) is I_CaNa_junc in component I_Ca (uA_per_uF).
C ALGBRC(77) is I_CaNa_sl in component I_Ca (uA_per_uF).
C ALGBRC(78) is I_CaNa in component I_Ca (uA_per_uF).
C ALGBRC(80) is I_Catot in component I_Ca (uA_per_uF).
C ALGBRC(79) is Ka_junc in component I_NCX (dimensionless).
C ALGBRC(81) is Ka_sl in component I_NCX (dimensionless).
C ALGBRC(82) is s1_junc in component I_NCX (mM4).
C ALGBRC(83) is s1_sl in component I_NCX (mM4).
C ALGBRC(84) is s2_junc in component I_NCX (mM4).
C ALGBRC(85) is s3_junc in component I_NCX (mM4).
C ALGBRC(86) is s2_sl in component I_NCX (mM4).
C ALGBRC(87) is s3_sl in component I_NCX (mM4).
C ALGBRC(88) is I_ncx_junc in component I_NCX (uA_per_uF).
C ALGBRC(89) is I_ncx_sl in component I_NCX (uA_per_uF).
C ALGBRC(91) is I_ncx in component I_NCX (uA_per_uF).
C ALGBRC(92) is I_pca_junc in component I_PCa (uA_per_uF).
C ALGBRC(94) is I_pca_sl in component I_PCa (uA_per_uF).
C ALGBRC(95) is I_pca in component I_PCa (uA_per_uF).
C ALGBRC(96) is I_cabk_junc in component I_CaBK (uA_per_uF).
C ALGBRC(97) is I_cabk_sl in component I_CaBK (uA_per_uF).
C ALGBRC(98) is I_cabk in component I_CaBK (uA_per_uF).
C CONSTS(97) is MaxSR in component SR_Fluxes (dimensionless).
C CONSTS(98) is MinSR in component SR_Fluxes (dimensionless).
C ALGBRC(11) is kCaSR in component SR_Fluxes (dimensionless).
C ALGBRC(24) is koSRCa in component SR_Fluxes (per_mM2_per_msec).
C ALGBRC(28) is kiSRCa in component SR_Fluxes (per_mM_per_msec).
C ALGBRC(32) is RI in component SR_Fluxes (mM).
C STATES(21) is Ry_Rr in component SR_Fluxes (mM).
C STATES(22) is Ry_Ro in component SR_Fluxes (mM).
C STATES(23) is Ry_Ri in component SR_Fluxes (mM).
C ALGBRC(99) is J_SRCarel in component SR_Fluxes (mM_per_msec).
C ALGBRC(100) is J_serca in component SR_Fluxes (mM_per_msec).
C ALGBRC(101) is J_SRleak in component SR_Fluxes (mM_per_msec).
C STATES(24) is Ca_sr in component SR_Ca_Concentrations (mM).
C STATES(25) is Ca_i in component Ca_Concentrations (mM).
C STATES(26) is Na_Bj in component Na_Buffers (mM).
C STATES(27) is Na_Bsl in component Na_Buffers (mM).
C ALGBRC(103) is dNa_Bj_dt in component Na_Buffers (mM_per_msec).
C ALGBRC(104) is dNa_Bsl_dt in component Na_Buffers (mM_per_msec).
C STATES(28) is Tn_CL in component Cytosolic_Ca_Buffers (mM).
C STATES(29) is Tn_CHc in component Cytosolic_Ca_Buffers (mM).
C STATES(30) is Tn_CHm in component Cytosolic_Ca_Buffers (mM).
C STATES(31) is CaM in component Cytosolic_Ca_Buffers (mM).
C STATES(32) is Myo_c in component Cytosolic_Ca_Buffers (mM).
C STATES(33) is Myo_m in component Cytosolic_Ca_Buffers (mM).
C STATES(34) is SRB in component Cytosolic_Ca_Buffers (mM).
C ALGBRC(102) is J_CaB_cytosol in component Cytosolic_Ca_Buffers (mM_per_msec).
C STATES(35) is SLL_j in component Junctional_and_SL_Ca_Buffers (mM).
C STATES(36) is SLL_sl in component Junctional_and_SL_Ca_Buffers (mM).
C STATES(37) is SLH_j in component Junctional_and_SL_Ca_Buffers (mM).
C STATES(38) is SLH_sl in component Junctional_and_SL_Ca_Buffers (mM).
C ALGBRC(105) is J_CaB_junction in component Junctional_and_SL_Ca_Buffers (mM_per_msec).
C ALGBRC(106) is J_CaB_sl in component Junctional_and_SL_Ca_Buffers (mM_per_msec).
C STATES(39) is Csqn_b in component SR_Ca_Concentrations (mM).
C ALGBRC(107) is I_Na_tot_junc in component Na_Concentrations (uA_per_uF).
C ALGBRC(108) is I_Na_tot_sl in component Na_Concentrations (uA_per_uF).
C ALGBRC(93) is I_Na_tot_sl2 in component Na_Concentrations (uA_per_uF).
C ALGBRC(90) is I_Na_tot_junc2 in component Na_Concentrations (uA_per_uF).
C ALGBRC(109) is I_K_tot in component K_Concentration (uA_per_uF).
C ALGBRC(110) is I_Ca_tot_junc in component Ca_Concentrations (uA_per_uF).
C ALGBRC(111) is I_Ca_tot_sl in component Ca_Concentrations (uA_per_uF).
C ALGBRC(112) is I_Na_tot in component membrane_potential (uA_per_uF).
C ALGBRC(113) is I_Cl_tot in component membrane_potential (uA_per_uF).
C ALGBRC(114) is I_Ca_tot in component membrane_potential (uA_per_uF).
C ALGBRC(115) is I_tot in component membrane_potential (uA_per_uF).
C RATES(7) is d/dt m in component I_Na (dimensionless).
C RATES(8) is d/dt h in component I_Na (dimensionless).
C RATES(9) is d/dt j in component I_Na (dimensionless).
C RATES(10) is d/dt x_kr in component I_Kr (dimensionless).
C RATES(11) is d/dt x_ks in component I_Ks (dimensionless).
C RATES(13) is d/dt x_to_s in component I_to (dimensionless).
C RATES(14) is d/dt y_to_s in component I_to (dimensionless).
C RATES(15) is d/dt x_to_f in component I_to (dimensionless).
C RATES(16) is d/dt y_to_f in component I_to (dimensionless).
C RATES(17) is d/dt d in component I_Ca (dimensionless).
C RATES(18) is d/dt f in component I_Ca (dimensionless).
C RATES(19) is d/dt f_Ca_Bj in component I_Ca (dimensionless).
C RATES(20) is d/dt f_Ca_Bsl in component I_Ca (dimensionless).
C RATES(21) is d/dt Ry_Rr in component SR_Fluxes (mM).
C RATES(22) is d/dt Ry_Ro in component SR_Fluxes (mM).
C RATES(23) is d/dt Ry_Ri in component SR_Fluxes (mM).
C RATES(26) is d/dt Na_Bj in component Na_Buffers (mM).
C RATES(27) is d/dt Na_Bsl in component Na_Buffers (mM).
C RATES(28) is d/dt Tn_CL in component Cytosolic_Ca_Buffers (mM).
C RATES(29) is d/dt Tn_CHc in component Cytosolic_Ca_Buffers (mM).
C RATES(30) is d/dt Tn_CHm in component Cytosolic_Ca_Buffers (mM).
C RATES(31) is d/dt CaM in component Cytosolic_Ca_Buffers (mM).
C RATES(32) is d/dt Myo_c in component Cytosolic_Ca_Buffers (mM).
C RATES(33) is d/dt Myo_m in component Cytosolic_Ca_Buffers (mM).
C RATES(34) is d/dt SRB in component Cytosolic_Ca_Buffers (mM).
C RATES(35) is d/dt SLL_j in component Junctional_and_SL_Ca_Buffers (mM).
C RATES(36) is d/dt SLL_sl in component Junctional_and_SL_Ca_Buffers (mM).
C RATES(37) is d/dt SLH_j in component Junctional_and_SL_Ca_Buffers (mM).
C RATES(38) is d/dt SLH_sl in component Junctional_and_SL_Ca_Buffers (mM).
C RATES(39) is d/dt Csqn_b in component SR_Ca_Concentrations (mM).
C RATES(24) is d/dt Ca_sr in component SR_Ca_Concentrations (mM).
C RATES(2) is d/dt Na_j in component Na_Concentrations (mM).
C RATES(3) is d/dt Na_sl in component Na_Concentrations (mM).
C RATES(12) is d/dt Na_i in component Na_Concentrations (mM).
C RATES(4) is d/dt K_i in component K_Concentration (mM).
C RATES(5) is d/dt Ca_j in component Ca_Concentrations (mM).
C RATES(6) is d/dt Ca_sl in component Ca_Concentrations (mM).
C RATES(25) is d/dt Ca_i in component Ca_Concentrations (mM).
C RATES(1) is d/dt V_m in component membrane_potential (mV).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = -40
      CONSTS(2) = 50
      STATES(1) = -8.09763e1
      CONSTS(3) = 0.02
      STATES(2) = 9.06
      STATES(3) = 9.06
      STATES(4) = 120
      STATES(5) = 1.737475e-4
      STATES(6) = 1.031812e-4
      STATES(7) = 1.405627e-3
      STATES(8) = 9.867005e-1
      STATES(9) = 9.91562e-1
      STATES(10) = 8.641386e-3
      STATES(11) = 5.412034e-3
      STATES(12) = 9.06
      STATES(13) = 4.051574e-3
      STATES(14) = 9.945511e-1
      STATES(15) = 4.051574e-3
      STATES(16) = 9.945511e-1
      STATES(17) = 7.175662e-6
      STATES(18) = 1.000681
      STATES(19) = 2.421991e-2
      STATES(20) = 1.452605e-2
      STATES(21) = 8.884332e-1
      STATES(22) = 8.156628e-7
      STATES(23) = 1.024274e-7
      STATES(24) = 0.1e-1
      STATES(25) = 8.597401e-5
      STATES(26) = 3.539892
      STATES(27) = 7.720854e-1
      STATES(28) = 8.773191e-3
      STATES(29) = 1.078283e-1
      STATES(30) = 1.524002e-2
      STATES(31) = 2.911916e-4
      STATES(32) = 1.298754e-3
      STATES(33) = 1.381982e-1
      STATES(34) = 2.143165e-3
      STATES(35) = 9.566355e-3
      STATES(36) = 1.110363e-1
      STATES(37) = 7.347888e-3
      STATES(38) = 7.297378e-2
      STATES(39) = 1.242988
      CONSTS(4) = 1.00000
      CONSTS(5) = 8314.00
      CONSTS(6) = 1.38100e-10
      CONSTS(7) = 100.000
      CONSTS(8) = 0.160000
      CONSTS(9) = 0.450000
      CONSTS(10) = 0.500000
      CONSTS(11) = 1.64000e-06
      CONSTS(12) = 1.22000e-06
      CONSTS(13) = 1.09000e-05
      CONSTS(14) = 1.79000e-05
      CONSTS(15) = 8.24130e-13
      CONSTS(16) = 3.27430e-12
      CONSTS(17) = 1.83130e-14
      CONSTS(18) = 1.63860e-12
      CONSTS(19) = 0.110000
      CONSTS(20) = 0.900000
      CONSTS(21) = 5.40000
      CONSTS(22) = 140.000
      CONSTS(23) = 1.80000
      CONSTS(24) = 1.00000
      CONSTS(25) = 23.0000
      CONSTS(26) = 0.000597000
      CONSTS(27) =  1.00000*1.80000
      CONSTS(28) = 11.0000
      CONSTS(29) = 1.50000
      CONSTS(30) = 1.63000
      CONSTS(31) = 1.39000
      CONSTS(32) = 0.0183300
      CONSTS(33) =  2.00000*0.00100000
      CONSTS(34) =  0.500000*0.109625
      CONSTS(35) =  1.00000*0.00900000
      CONSTS(36) = 0.100000
      CONSTS(37) =  0.500000*1.50000e-08
      CONSTS(38) =  0.500000*0.000540000
      CONSTS(39) =  0.500000*2.70000e-07
      CONSTS(40) = 1.80000
      CONSTS(41) =  1.00000*4.50000
      CONSTS(42) = 0.00359000
      CONSTS(43) = 1.30000
      CONSTS(44) = 12.2900
      CONSTS(45) = 87.5000
      CONSTS(46) = 0.320000
      CONSTS(47) = 0.270000
      CONSTS(48) = 0.000150000
      CONSTS(49) = 1.57000
      CONSTS(50) = 0.0673000
      CONSTS(51) = 0.000500000
      CONSTS(52) = 0.000551300
      CONSTS(53) = 2.35000
      CONSTS(54) = 2.60000
      CONSTS(55) = 0.00531140
      CONSTS(56) = 0.000246000
      CONSTS(57) = 1.70000
      CONSTS(58) = 1.78700
      CONSTS(59) = 25.0000
      CONSTS(60) = 10.0000
      CONSTS(61) = 0.0600000
      CONSTS(62) = 0.00500000
      CONSTS(63) = 0.450000
      CONSTS(64) = 7.56100
      CONSTS(65) = 1.65000
      CONSTS(66) = 0.00100000
      CONSTS(67) = 0.000100000
      CONSTS(68) = 0.0700000
      CONSTS(69) = 0.0196000
      CONSTS(70) = 32.7000
      CONSTS(71) = 0.140000
      CONSTS(72) = 3.20000e-05
      CONSTS(73) = 2.37000
      CONSTS(74) = 0.00333000
      CONSTS(75) = 0.00300000
      CONSTS(76) = 0.0240000
      CONSTS(77) = 0.238000
      CONSTS(78) = 34.0000
      CONSTS(79) = 0.140000
      CONSTS(80) = 0.000460000
      CONSTS(81) = 13.8000
      CONSTS(82) = 5.70000e-05
      CONSTS(83) = 0.0157000
      CONSTS(84) =  19.0000*0.000900000
      CONSTS(85) = 0.0600000
      CONSTS(86) = 100.000
      CONSTS(87) = 1.30000
      CONSTS(88) = 100.000
      CONSTS(89) = 0.0300000
      CONSTS(90) = 100.000
      CONSTS(91) = 65.0000
      CONSTS(92) = 100.000
      CONSTS(93) = 0.00350000
      CONSTS(94) = 0.00350000
      CONSTS(95) = 0.00000
      CONSTS(96) = 0.00000
      CONSTS(97) = 15.0000
      CONSTS(98) = 1.00000
      CONSTS(126) = 0.00000
      CONSTS(99) = 96485.0
      CONSTS(100) = 10.2500
      CONSTS(101) = 0.0150000
      CONSTS(102) = 1.00000 - CONSTS(19)
      CONSTS(103) = 1.00000 - CONSTS(20)
      CONSTS(104) = (EXP(CONSTS(22)/67.3000) - 1.00000)/7.00000
      CONSTS(105) =  0.0350000* (CONSTS(21)/5.40000) ** (1.0 / 2)
      CONSTS(106) = TERNRY(CONSTS(4).EQ.1.00000,  1.00000*0.130000*0.120000,  0.130000*0.300000*0.964000)
      CONSTS(107) = TERNRY(CONSTS(4).EQ.1.00000,  1.00000*0.130000*0.880000,  0.130000*0.300000*0.0360000)
      CONSTS(108) = 0.500000
      CONSTS(109) = 310.000
      CONSTS(110) =   3.14159265358979*CONSTS(100) ** 2.00000*CONSTS(7)*1.00000e-15
      CONSTS(111) =  20150.0* 3.14159265358979*2.00000*CONSTS(8)*CONSTS(101)
      CONSTS(112) =   3.14159265358979*2.00000*CONSTS(100)*CONSTS(7)
      CONSTS(113) = CONSTS(99)/( CONSTS(5)*CONSTS(109))
      CONSTS(114) = (CONSTS(109) - 310.000)/10.0000
      CONSTS(115) =  0.650000*CONSTS(110)
      CONSTS(116) =  0.0350000*CONSTS(110)
      CONSTS(117) =  0.0200000*CONSTS(110)
      CONSTS(118) =  0.0539000*0.0100000*CONSTS(110)
      CONSTS(119) = 15.0000
      CONSTS(120) = 150.000
      CONSTS(121) = ( 0.0374000*CONSTS(115))/CONSTS(117)
      CONSTS(122) =  (( 0.00460000*CONSTS(115))/CONSTS(118))*0.100000
      CONSTS(123) = ( 0.0134000*CONSTS(115))/CONSTS(117)
      CONSTS(124) =  (( 0.00165000*CONSTS(115))/CONSTS(118))*0.100000
      CONSTS(125) = ( 0.140000*CONSTS(115))/CONSTS(116)
      CONSTS(126) =  (1.00000/CONSTS(113))*log(CONSTS(119)/CONSTS(120))
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(4) = CONSTS(126)
      RATES(19) =  (( 1.70000*STATES(5))/1.00000)*(1.00000 - STATES(19)) -  0.0119000*STATES(19)
      RATES(20) =  (( 1.70000*STATES(6))/1.00000)*(1.00000 - STATES(20)) -  0.0119000*STATES(20)
      RATES(28) =  CONSTS(70)*STATES(25)*(CONSTS(68) - STATES(28)) -  CONSTS(69)*STATES(28)
      RATES(29) =  CONSTS(73)*STATES(25)*((CONSTS(71) - STATES(29)) - STATES(30)) -  CONSTS(72)*STATES(29)
      RATES(30) =  CONSTS(75)*CONSTS(24)*((CONSTS(71) - STATES(29)) - STATES(30)) -  CONSTS(74)*STATES(30)
      RATES(31) =  CONSTS(78)*STATES(25)*(CONSTS(76) - STATES(31)) -  CONSTS(77)*STATES(31)
      RATES(32) =  CONSTS(81)*STATES(25)*((CONSTS(79) - STATES(32)) - STATES(33)) -  CONSTS(80)*STATES(32)
      RATES(33) =  CONSTS(83)*CONSTS(24)*((CONSTS(79) - STATES(32)) - STATES(33)) -  CONSTS(82)*STATES(33)
      RATES(34) =  CONSTS(86)*STATES(25)*(CONSTS(84) - STATES(34)) -  CONSTS(85)*STATES(34)
      RATES(35) =  CONSTS(88)*STATES(5)*(CONSTS(122) - STATES(35)) -  CONSTS(87)*STATES(35)
      RATES(36) =  CONSTS(88)*STATES(6)*(CONSTS(121) - STATES(36)) -  CONSTS(87)*STATES(36)
      RATES(37) =  CONSTS(90)*STATES(5)*(CONSTS(124) - STATES(37)) -  CONSTS(89)*STATES(37)
      RATES(38) =  CONSTS(90)*STATES(6)*(CONSTS(123) - STATES(38)) -  CONSTS(89)*STATES(38)
      RATES(39) =  CONSTS(92)*STATES(24)*(CONSTS(125) - STATES(39)) -  CONSTS(91)*STATES(39)
      RATES(12) =  (CONSTS(18)/CONSTS(115))*(STATES(3) - STATES(12))
      ALGBRC(1) = 1.00000/1.00000+EXP(- (56.8600+STATES(1))/9.03000) ** 2.00000
      ALGBRC(12) =  0.129200*EXP(- (STATES(1)+45.7900)/15.5400 ** 2.00000)+ 0.0648700*EXP(- (STATES(1) - 4.82300)/51.1200 ** 2.00000)
      RATES(7) = (ALGBRC(1) - STATES(7))/ALGBRC(12)
      ALGBRC(4) = 1.00000/(1.00000+EXP(- (STATES(1)+10.0000)/5.00000))
      ALGBRC(15) = ( (550.000/(1.00000+EXP((- 22.0000 - STATES(1))/9.00000)))*6.00000)/(1.00000+EXP((STATES(1) - - 11.0000)/9.00000))+230.000/(1.00000+EXP((STATES(1) - - 40.0000)/20.0000))
      RATES(10) = (ALGBRC(4) - STATES(10))/ALGBRC(15)
      ALGBRC(5) = 1.00000/(1.00000+EXP(- (STATES(1)+3.80000)/14.2500))
      ALGBRC(16) = 990.100/(1.00000+EXP(- (STATES(1)+2.43600)/14.1200))
      RATES(11) = (ALGBRC(5) - STATES(11))/ALGBRC(16)
      ALGBRC(6) = 1.00000/(1.00000+EXP(- (STATES(1) - 19.0000)/13.0000))
      ALGBRC(17) = 9.00000/(1.00000+EXP((STATES(1)+3.00000)/15.0000))+0.500000
      RATES(13) = (ALGBRC(6) - STATES(13))/ALGBRC(17)
      ALGBRC(7) = 1.00000/(1.00000+EXP((STATES(1)+19.5000)/5.00000))
      ALGBRC(18) = 800.000/(1.00000+EXP((STATES(1)+60.0000)/10.0000))+30.0000
      RATES(14) = (ALGBRC(7) - STATES(14))/ALGBRC(18)
      ALGBRC(19) =  8.50000*EXP(- (STATES(1)+45.0000)/50.0000 ** 2.00000)+0.500000
      RATES(15) = (ALGBRC(6) - STATES(15))/ALGBRC(19)
      ALGBRC(20) =  85.0000*EXP(- STATES(1)+40.0000 ** 2.00000/220.000)+7.00000
      RATES(16) = (ALGBRC(7) - STATES(16))/ALGBRC(20)
      ALGBRC(9) = 1.00000/(1.00000+EXP(- (STATES(1)+5.00000)/6.00000))
      ALGBRC(21) = ( 1.00000*ALGBRC(9)*(1.00000 - EXP(- (STATES(1)+5.00000)/6.00000)))/( 0.0350000*(STATES(1)+5.00000))
      RATES(17) = (ALGBRC(9) - STATES(17))/ALGBRC(21)
      ALGBRC(8) = 1.00000/(1.00000+EXP((STATES(1)+35.0000)/9.00000))+0.600000/(1.00000+EXP((50.0000 - STATES(1))/20.0000))
      ALGBRC(22) = 1.00000/( 0.0197000*EXP(-  0.0337000*(STATES(1)+14.5000) ** 2.00000)+0.0200000)
      RATES(18) = (ALGBRC(8) - STATES(18))/ALGBRC(22)
      ALGBRC(11) = CONSTS(97) - (CONSTS(97) - CONSTS(98))/(1.00000+CONSTS(63)/STATES(24) ** 2.50000)
      ALGBRC(24) = CONSTS(60)/ALGBRC(11)
      ALGBRC(28) =  CONSTS(108)*ALGBRC(11)
      RATES(22) = ( ALGBRC(24)*STATES(5) ** 2.00000*STATES(21) -  CONSTS(61)*STATES(22)) - ( ALGBRC(28)*STATES(5)*STATES(22) -  CONSTS(62)*STATES(23))
      ALGBRC(2) = TERNRY(STATES(1).GE.- 40.0000, 0.00000,  0.0570000*EXP(- (STATES(1)+80.0000)/6.80000))
      ALGBRC(13) = TERNRY(STATES(1).GE.- 40.0000, 0.770000/( 0.130000*(1.00000+EXP(- (STATES(1)+10.6600)/11.1000))),  2.70000*EXP( 0.0790000*STATES(1))+ 310000.*EXP( 0.348500*STATES(1)))
      ALGBRC(25) = 1.00000/(ALGBRC(2)+ALGBRC(13))
      ALGBRC(29) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000
      RATES(8) = (ALGBRC(29) - STATES(8))/ALGBRC(25)
      ALGBRC(3) = TERNRY(STATES(1).GE.- 40.0000, 0.00000, ( ( - 25428.0*EXP( 0.244400*STATES(1)) -  6.94800e-06*EXP( - 0.0439100*STATES(1)))*(STATES(1)+37.7800))/(1.00000+EXP( 0.311000*(STATES(1)+79.2300))))
      ALGBRC(14) = TERNRY(STATES(1).GE.- 40.0000, ( 0.600000*EXP( 0.0570000*STATES(1)))/(1.00000+EXP( - 0.100000*(STATES(1)+32.0000))), ( 0.0242400*EXP( - 0.0105200*STATES(1)))/(1.00000+EXP( - 0.137800*(STATES(1)+40.1400))))
      ALGBRC(26) = 1.00000/(ALGBRC(3)+ALGBRC(14))
      ALGBRC(30) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000
      RATES(9) = (ALGBRC(30) - STATES(9))/ALGBRC(26)
      ALGBRC(32) = ((1.00000 - STATES(21)) - STATES(22)) - STATES(23)
      RATES(21) = ( CONSTS(62)*ALGBRC(32) -  ALGBRC(28)*STATES(5)*STATES(21)) - ( ALGBRC(24)*STATES(5) ** 2.00000*STATES(21) -  CONSTS(61)*STATES(22))
      RATES(23) = ( ALGBRC(28)*STATES(5)*STATES(22) -  CONSTS(62)*STATES(23)) - ( CONSTS(61)*STATES(23) -  ALGBRC(24)*STATES(5) ** 2.00000*ALGBRC(32))
      ALGBRC(99) =  (( CONSTS(59)*STATES(22))/1.00000)*(STATES(24) - STATES(5))
      ALGBRC(100) = ( CONSTS(54) ** CONSTS(114)*CONSTS(55)*(STATES(25)/CONSTS(56) ** CONSTS(58) - STATES(24)/CONSTS(57) ** CONSTS(58)))/(1.00000+STATES(25)/CONSTS(56) ** CONSTS(58)+STATES(24)/CONSTS(57) ** CONSTS(58))
      ALGBRC(101) =  5.34800e-06*(STATES(24) - STATES(5))
      RATES(24) = (ALGBRC(100) - (( ALGBRC(101)*CONSTS(115))/CONSTS(116)+ALGBRC(99))) - ( CONSTS(92)*STATES(24)*(CONSTS(125) - STATES(39)) -  CONSTS(91)*STATES(39))
      ALGBRC(102) = ((((((((((( CONSTS(70)*STATES(25)*(CONSTS(68) - STATES(28)) -  CONSTS(69)*STATES(28))+ CONSTS(73)*STATES(25)*((CONSTS(71) - STATES(29)) - STATES(30))) -  CONSTS(72)*STATES(29))+ CONSTS(75)*CONSTS(24)*((CONSTS(71) - STATES(29)) - STATES(30))) -  CONSTS(74)*STATES(30))+ CONSTS(78)*STATES(25)*(CONSTS(76) - STATES(31))) -  CONSTS(77)*STATES(31))+ CONSTS(81)*STATES(25)*((CONSTS(79) - STATES(32)) - STATES(33))) -  CONSTS(80)*STATES(32))+ CONSTS(83)*CONSTS(24)*((CONSTS(79) - STATES(32)) - STATES(33))) -  CONSTS(82)*STATES(33))+( CONSTS(86)*STATES(25)*(CONSTS(84) - STATES(34)) -  CONSTS(85)*STATES(34))
      RATES(25) = (( - ALGBRC(100)*CONSTS(116))/CONSTS(115) - ALGBRC(102))+ (CONSTS(16)/CONSTS(115))*(STATES(6) - STATES(25))
      ALGBRC(103) =  CONSTS(67)*STATES(2)*(CONSTS(64) - STATES(26)) -  CONSTS(66)*STATES(26)
      RATES(26) = ALGBRC(103)
      ALGBRC(104) =  CONSTS(67)*STATES(3)*(CONSTS(65) - STATES(27)) -  CONSTS(66)*STATES(27)
      RATES(27) = ALGBRC(104)
      ALGBRC(27) =  (1.00000/CONSTS(113))*log(CONSTS(22)/STATES(2))
      ALGBRC(36) =  CONSTS(19)*CONSTS(25)*STATES(7) ** 3.00000*STATES(8)*STATES(9)*(STATES(1) - ALGBRC(27))
      ALGBRC(39) =  CONSTS(19)*CONSTS(26)*(STATES(1) - ALGBRC(27))
      ALGBRC(42) = 1.00000/(1.00000+ 0.124500*EXP( - 0.100000*STATES(1)*CONSTS(113))+ 0.0365000*CONSTS(104)*EXP( - STATES(1)*CONSTS(113)))
      ALGBRC(43) = (( CONSTS(19)*CONSTS(27)*ALGBRC(42)*CONSTS(21))/(1.00000+CONSTS(28)/STATES(2) ** 4.00000))/(CONSTS(21)+CONSTS(29))
      ALGBRC(70) = ( CONSTS(37)*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.750000*STATES(2)*EXP( STATES(1)*CONSTS(113)) -  0.750000*CONSTS(22)))/(EXP( STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(76) =  CONSTS(20)*ALGBRC(70)*STATES(17)*STATES(18)*((1.00000 - STATES(19))+CONSTS(96))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(79) = 1.00000/(1.00000+CONSTS(48)/STATES(5) ** 2.00000)
      ALGBRC(82) =  EXP( CONSTS(47)*STATES(1)*CONSTS(113))*STATES(2) ** 3.00000*CONSTS(23)
      ALGBRC(84) =  EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113))*CONSTS(22) ** 3.00000*STATES(5)
      ALGBRC(85) =  CONSTS(42)*CONSTS(22) ** 3.00000*(1.00000+STATES(2)/CONSTS(44) ** 3.00000)+ CONSTS(45) ** 3.00000*STATES(5)*(1.00000+STATES(5)/CONSTS(42))+ CONSTS(43)*STATES(2) ** 3.00000+ STATES(2) ** 3.00000*CONSTS(23)+ CONSTS(22) ** 3.00000*STATES(5)
      ALGBRC(88) = (( CONSTS(19)*CONSTS(41)*CONSTS(49) ** CONSTS(114)*ALGBRC(79)*(ALGBRC(82) - ALGBRC(84)))/ALGBRC(85))/(1.00000+ CONSTS(46)*EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113)))
      ALGBRC(107) = ALGBRC(36)+ALGBRC(39)+ 3.00000*ALGBRC(88)+ 3.00000*ALGBRC(43)+ALGBRC(76)
      RATES(2) = (( - ALGBRC(107)*CONSTS(6))/( CONSTS(118)*CONSTS(99))+ (CONSTS(17)/CONSTS(118))*(STATES(3) - STATES(2))) - ALGBRC(103)
      ALGBRC(31) =  (1.00000/CONSTS(113))*log(CONSTS(22)/STATES(3))
      ALGBRC(37) =  CONSTS(102)*CONSTS(25)*STATES(7) ** 3.00000*STATES(8)*STATES(9)*(STATES(1) - ALGBRC(31))
      ALGBRC(40) =  CONSTS(102)*CONSTS(26)*(STATES(1) - ALGBRC(31))
      ALGBRC(44) = (( CONSTS(102)*CONSTS(27)*ALGBRC(42)*CONSTS(21))/(1.00000+CONSTS(28)/STATES(3) ** 4.00000))/(CONSTS(21)+CONSTS(29))
      ALGBRC(71) = ( CONSTS(37)*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.750000*STATES(3)*EXP( STATES(1)*CONSTS(113)) -  0.750000*CONSTS(22)))/(EXP( STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(77) =  CONSTS(103)*ALGBRC(71)*STATES(17)*STATES(18)*((1.00000 - STATES(20))+CONSTS(95))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(81) = 1.00000/(1.00000+CONSTS(48)/STATES(6) ** 2.00000)
      ALGBRC(83) =  EXP( CONSTS(47)*STATES(1)*CONSTS(113))*STATES(3) ** 3.00000*CONSTS(23)
      ALGBRC(86) =  EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113))*CONSTS(22) ** 3.00000*STATES(6)
      ALGBRC(87) =  CONSTS(42)*CONSTS(22) ** 3.00000*(1.00000+STATES(3)/CONSTS(44) ** 3.00000)+ CONSTS(45) ** 3.00000*STATES(6)*(1.00000+STATES(6)/CONSTS(42))+ CONSTS(43)*STATES(3) ** 3.00000+ STATES(3) ** 3.00000*CONSTS(23)+ CONSTS(22) ** 3.00000*STATES(6)
      ALGBRC(89) = (( CONSTS(102)*CONSTS(41)*CONSTS(49) ** CONSTS(114)*ALGBRC(81)*(ALGBRC(83) - ALGBRC(86)))/ALGBRC(87))/(1.00000+ CONSTS(46)*EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113)))
      ALGBRC(108) = ALGBRC(37)+ALGBRC(40)+ 3.00000*ALGBRC(89)+ 3.00000*ALGBRC(44)+ALGBRC(77)
      RATES(3) = (( - ALGBRC(108)*CONSTS(6))/( CONSTS(117)*CONSTS(99))+ (CONSTS(17)/CONSTS(117))*(STATES(2) - STATES(3))+ (CONSTS(18)/CONSTS(117))*(STATES(12) - STATES(3))) - ALGBRC(104)
      ALGBRC(105) = ( CONSTS(88)*STATES(5)*(CONSTS(122) - STATES(35)) -  CONSTS(87)*STATES(35))+( CONSTS(90)*STATES(5)*(CONSTS(124) - STATES(37)) -  CONSTS(89)*STATES(37))
      ALGBRC(67) = ( CONSTS(38)*4.00000*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.341000*STATES(5)*EXP( 2.00000*STATES(1)*CONSTS(113)) -  0.341000*CONSTS(23)))/(EXP( 2.00000*STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(72) =  CONSTS(20)*ALGBRC(67)*STATES(17)*STATES(18)*((1.00000 - STATES(19))+CONSTS(96))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(92) = ( CONSTS(19)*CONSTS(53) ** CONSTS(114)*CONSTS(50)*STATES(5) ** 1.60000)/(CONSTS(51) ** 1.60000+STATES(5) ** 1.60000)
      ALGBRC(34) =  ((1.00000/CONSTS(113))/2.00000)*log(CONSTS(23)/STATES(5))
      ALGBRC(96) =  CONSTS(19)*CONSTS(52)*(STATES(1) - ALGBRC(34))
      ALGBRC(110) = (ALGBRC(72)+ALGBRC(96)+ALGBRC(92)) -  2.00000*ALGBRC(88)
      RATES(5) = ((( - ALGBRC(110)*CONSTS(6))/( CONSTS(118)*2.00000*CONSTS(99))+ (CONSTS(15)/CONSTS(118))*(STATES(6) - STATES(5))) - ALGBRC(105))+( ALGBRC(99)*CONSTS(116))/CONSTS(118)+( ALGBRC(101)*CONSTS(115))/CONSTS(118)
      ALGBRC(106) = ( CONSTS(88)*STATES(6)*(CONSTS(121) - STATES(36)) -  CONSTS(87)*STATES(36))+( CONSTS(90)*STATES(6)*(CONSTS(123) - STATES(38)) -  CONSTS(89)*STATES(38))
      ALGBRC(68) = ( CONSTS(38)*4.00000*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.341000*STATES(6)*EXP( 2.00000*STATES(1)*CONSTS(113)) -  0.341000*CONSTS(23)))/(EXP( 2.00000*STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(73) =  CONSTS(103)*ALGBRC(68)*STATES(17)*STATES(18)*((1.00000 - STATES(20))+CONSTS(95))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(94) = ( CONSTS(102)*CONSTS(53) ** CONSTS(114)*CONSTS(50)*STATES(6) ** 1.60000)/(CONSTS(51) ** 1.60000+STATES(6) ** 1.60000)
      ALGBRC(35) =  ((1.00000/CONSTS(113))/2.00000)*log(CONSTS(23)/STATES(6))
      ALGBRC(97) =  CONSTS(102)*CONSTS(52)*(STATES(1) - ALGBRC(35))
      ALGBRC(111) = (ALGBRC(73)+ALGBRC(97)+ALGBRC(94)) -  2.00000*ALGBRC(89)
      RATES(6) = (( - ALGBRC(111)*CONSTS(6))/( CONSTS(117)*2.00000*CONSTS(99))+ (CONSTS(15)/CONSTS(117))*(STATES(5) - STATES(6))+ (CONSTS(16)/CONSTS(117))*(STATES(25) - STATES(6))) - ALGBRC(106)
      ALGBRC(10) = TERNRY(VOI.GT.500.000.AND.VOI.LT.5500.00, CONSTS(2), CONSTS(1))
      ALGBRC(23) = (ALGBRC(10) - STATES(1))/CONSTS(3)
      ALGBRC(45) = ALGBRC(43)+ALGBRC(44)
      ALGBRC(33) =  (1.00000/CONSTS(113))*log(CONSTS(21)/STATES(4))
      ALGBRC(46) = 1.00000/(1.00000+EXP((STATES(1)+74.0000)/24.0000))
      ALGBRC(47) =  CONSTS(105)*STATES(10)*ALGBRC(46)*(STATES(1) - ALGBRC(33))
      ALGBRC(48) = 1.00000/(1.00000+EXP(7.48800 - STATES(1)/5.98000))
      ALGBRC(49) =  CONSTS(19)*CONSTS(33)*ALGBRC(48)*(STATES(1) - ALGBRC(33))
      ALGBRC(50) =  CONSTS(102)*CONSTS(33)*ALGBRC(48)*(STATES(1) - ALGBRC(33))
      ALGBRC(51) = ALGBRC(49)+ALGBRC(50)
      ALGBRC(52) =  (1.00000/CONSTS(113))*log((CONSTS(21)+ CONSTS(32)*CONSTS(22))/(STATES(4)+ CONSTS(32)*STATES(12)))
      ALGBRC(53) =  CONSTS(19)*CONSTS(93)*STATES(11) ** 2.00000*(STATES(1) - ALGBRC(52))
      ALGBRC(54) =  CONSTS(102)*CONSTS(94)*STATES(11) ** 2.00000*(STATES(1) - ALGBRC(52))
      ALGBRC(55) = ALGBRC(53)+ALGBRC(54)
      ALGBRC(56) =  CONSTS(106)*STATES(13)*STATES(14)*(STATES(1) - ALGBRC(33))
      ALGBRC(57) =  CONSTS(107)*STATES(15)*STATES(16)*(STATES(1) - ALGBRC(33))
      ALGBRC(58) = ALGBRC(56)+ALGBRC(57)
      ALGBRC(59) = 1.02000/(1.00000+EXP( 0.238500*((STATES(1) - ALGBRC(33)) - 59.2150)))
      ALGBRC(60) = ( 0.491240*EXP( 0.0803200*((STATES(1)+5.47600) - ALGBRC(33)))+EXP( 0.0617500*((STATES(1) - ALGBRC(33)) - 594.310)))/(1.00000+EXP( - 0.514300*((STATES(1) - ALGBRC(33))+4.75300)))
      ALGBRC(61) = ALGBRC(59)/(ALGBRC(59)+ALGBRC(60))
      ALGBRC(62) =  1.00000*0.350000* (CONSTS(21)/5.40000) ** (1.0 / 2)*ALGBRC(61)*(STATES(1) - ALGBRC(33))
      ALGBRC(69) = ( CONSTS(39)*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.750000*STATES(4)*EXP( STATES(1)*CONSTS(113)) -  0.750000*CONSTS(21)))/(EXP( STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(75) =  ALGBRC(69)*STATES(17)*STATES(18)*( CONSTS(20)*(CONSTS(96)+(1.00000 - STATES(19)))+ CONSTS(103)*(CONSTS(95)+(1.00000 - STATES(20))))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(109) = ((ALGBRC(58)+ALGBRC(47)+ALGBRC(55)+ALGBRC(62)) -  2.00000*ALGBRC(45))+ALGBRC(75)+ALGBRC(51)
      ALGBRC(112) = ALGBRC(107)+ALGBRC(108)
      ALGBRC(63) =  (( CONSTS(19)*CONSTS(34))/(1.00000+CONSTS(36)/STATES(5)))*(STATES(1) - CONSTS(126))
      ALGBRC(64) =  (( CONSTS(102)*CONSTS(34))/(1.00000+CONSTS(36)/STATES(6)))*(STATES(1) - CONSTS(126))
      ALGBRC(65) = ALGBRC(63)+ALGBRC(64)
      ALGBRC(66) =  CONSTS(35)*(STATES(1) - CONSTS(126))
      ALGBRC(113) = ALGBRC(65)+ALGBRC(66)
      ALGBRC(114) = ALGBRC(110)+ALGBRC(111)
      ALGBRC(115) = ALGBRC(112)+ALGBRC(113)+ALGBRC(114)+ALGBRC(109)
      RATES(1) = - (ALGBRC(115) - ALGBRC(23))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = 1.00000/1.00000+EXP(- (56.8600+STATES(1))/9.03000) ** 2.00000
      ALGBRC(12) =  0.129200*EXP(- (STATES(1)+45.7900)/15.5400 ** 2.00000)+ 0.0648700*EXP(- (STATES(1) - 4.82300)/51.1200 ** 2.00000)
      ALGBRC(4) = 1.00000/(1.00000+EXP(- (STATES(1)+10.0000)/5.00000))
      ALGBRC(15) = ( (550.000/(1.00000+EXP((- 22.0000 - STATES(1))/9.00000)))*6.00000)/(1.00000+EXP((STATES(1) - - 11.0000)/9.00000))+230.000/(1.00000+EXP((STATES(1) - - 40.0000)/20.0000))
      ALGBRC(5) = 1.00000/(1.00000+EXP(- (STATES(1)+3.80000)/14.2500))
      ALGBRC(16) = 990.100/(1.00000+EXP(- (STATES(1)+2.43600)/14.1200))
      ALGBRC(6) = 1.00000/(1.00000+EXP(- (STATES(1) - 19.0000)/13.0000))
      ALGBRC(17) = 9.00000/(1.00000+EXP((STATES(1)+3.00000)/15.0000))+0.500000
      ALGBRC(7) = 1.00000/(1.00000+EXP((STATES(1)+19.5000)/5.00000))
      ALGBRC(18) = 800.000/(1.00000+EXP((STATES(1)+60.0000)/10.0000))+30.0000
      ALGBRC(19) =  8.50000*EXP(- (STATES(1)+45.0000)/50.0000 ** 2.00000)+0.500000
      ALGBRC(20) =  85.0000*EXP(- STATES(1)+40.0000 ** 2.00000/220.000)+7.00000
      ALGBRC(9) = 1.00000/(1.00000+EXP(- (STATES(1)+5.00000)/6.00000))
      ALGBRC(21) = ( 1.00000*ALGBRC(9)*(1.00000 - EXP(- (STATES(1)+5.00000)/6.00000)))/( 0.0350000*(STATES(1)+5.00000))
      ALGBRC(8) = 1.00000/(1.00000+EXP((STATES(1)+35.0000)/9.00000))+0.600000/(1.00000+EXP((50.0000 - STATES(1))/20.0000))
      ALGBRC(22) = 1.00000/( 0.0197000*EXP(-  0.0337000*(STATES(1)+14.5000) ** 2.00000)+0.0200000)
      ALGBRC(11) = CONSTS(97) - (CONSTS(97) - CONSTS(98))/(1.00000+CONSTS(63)/STATES(24) ** 2.50000)
      ALGBRC(24) = CONSTS(60)/ALGBRC(11)
      ALGBRC(28) =  CONSTS(108)*ALGBRC(11)
      ALGBRC(2) = TERNRY(STATES(1).GE.- 40.0000, 0.00000,  0.0570000*EXP(- (STATES(1)+80.0000)/6.80000))
      ALGBRC(13) = TERNRY(STATES(1).GE.- 40.0000, 0.770000/( 0.130000*(1.00000+EXP(- (STATES(1)+10.6600)/11.1000))),  2.70000*EXP( 0.0790000*STATES(1))+ 310000.*EXP( 0.348500*STATES(1)))
      ALGBRC(25) = 1.00000/(ALGBRC(2)+ALGBRC(13))
      ALGBRC(29) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000
      ALGBRC(3) = TERNRY(STATES(1).GE.- 40.0000, 0.00000, ( ( - 25428.0*EXP( 0.244400*STATES(1)) -  6.94800e-06*EXP( - 0.0439100*STATES(1)))*(STATES(1)+37.7800))/(1.00000+EXP( 0.311000*(STATES(1)+79.2300))))
      ALGBRC(14) = TERNRY(STATES(1).GE.- 40.0000, ( 0.600000*EXP( 0.0570000*STATES(1)))/(1.00000+EXP( - 0.100000*(STATES(1)+32.0000))), ( 0.0242400*EXP( - 0.0105200*STATES(1)))/(1.00000+EXP( - 0.137800*(STATES(1)+40.1400))))
      ALGBRC(26) = 1.00000/(ALGBRC(3)+ALGBRC(14))
      ALGBRC(30) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000
      ALGBRC(32) = ((1.00000 - STATES(21)) - STATES(22)) - STATES(23)
      ALGBRC(99) =  (( CONSTS(59)*STATES(22))/1.00000)*(STATES(24) - STATES(5))
      ALGBRC(100) = ( CONSTS(54) ** CONSTS(114)*CONSTS(55)*(STATES(25)/CONSTS(56) ** CONSTS(58) - STATES(24)/CONSTS(57) ** CONSTS(58)))/(1.00000+STATES(25)/CONSTS(56) ** CONSTS(58)+STATES(24)/CONSTS(57) ** CONSTS(58))
      ALGBRC(101) =  5.34800e-06*(STATES(24) - STATES(5))
      ALGBRC(102) = ((((((((((( CONSTS(70)*STATES(25)*(CONSTS(68) - STATES(28)) -  CONSTS(69)*STATES(28))+ CONSTS(73)*STATES(25)*((CONSTS(71) - STATES(29)) - STATES(30))) -  CONSTS(72)*STATES(29))+ CONSTS(75)*CONSTS(24)*((CONSTS(71) - STATES(29)) - STATES(30))) -  CONSTS(74)*STATES(30))+ CONSTS(78)*STATES(25)*(CONSTS(76) - STATES(31))) -  CONSTS(77)*STATES(31))+ CONSTS(81)*STATES(25)*((CONSTS(79) - STATES(32)) - STATES(33))) -  CONSTS(80)*STATES(32))+ CONSTS(83)*CONSTS(24)*((CONSTS(79) - STATES(32)) - STATES(33))) -  CONSTS(82)*STATES(33))+( CONSTS(86)*STATES(25)*(CONSTS(84) - STATES(34)) -  CONSTS(85)*STATES(34))
      ALGBRC(103) =  CONSTS(67)*STATES(2)*(CONSTS(64) - STATES(26)) -  CONSTS(66)*STATES(26)
      ALGBRC(104) =  CONSTS(67)*STATES(3)*(CONSTS(65) - STATES(27)) -  CONSTS(66)*STATES(27)
      ALGBRC(27) =  (1.00000/CONSTS(113))*log(CONSTS(22)/STATES(2))
      ALGBRC(36) =  CONSTS(19)*CONSTS(25)*STATES(7) ** 3.00000*STATES(8)*STATES(9)*(STATES(1) - ALGBRC(27))
      ALGBRC(39) =  CONSTS(19)*CONSTS(26)*(STATES(1) - ALGBRC(27))
      ALGBRC(42) = 1.00000/(1.00000+ 0.124500*EXP( - 0.100000*STATES(1)*CONSTS(113))+ 0.0365000*CONSTS(104)*EXP( - STATES(1)*CONSTS(113)))
      ALGBRC(43) = (( CONSTS(19)*CONSTS(27)*ALGBRC(42)*CONSTS(21))/(1.00000+CONSTS(28)/STATES(2) ** 4.00000))/(CONSTS(21)+CONSTS(29))
      ALGBRC(70) = ( CONSTS(37)*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.750000*STATES(2)*EXP( STATES(1)*CONSTS(113)) -  0.750000*CONSTS(22)))/(EXP( STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(76) =  CONSTS(20)*ALGBRC(70)*STATES(17)*STATES(18)*((1.00000 - STATES(19))+CONSTS(96))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(79) = 1.00000/(1.00000+CONSTS(48)/STATES(5) ** 2.00000)
      ALGBRC(82) =  EXP( CONSTS(47)*STATES(1)*CONSTS(113))*STATES(2) ** 3.00000*CONSTS(23)
      ALGBRC(84) =  EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113))*CONSTS(22) ** 3.00000*STATES(5)
      ALGBRC(85) =  CONSTS(42)*CONSTS(22) ** 3.00000*(1.00000+STATES(2)/CONSTS(44) ** 3.00000)+ CONSTS(45) ** 3.00000*STATES(5)*(1.00000+STATES(5)/CONSTS(42))+ CONSTS(43)*STATES(2) ** 3.00000+ STATES(2) ** 3.00000*CONSTS(23)+ CONSTS(22) ** 3.00000*STATES(5)
      ALGBRC(88) = (( CONSTS(19)*CONSTS(41)*CONSTS(49) ** CONSTS(114)*ALGBRC(79)*(ALGBRC(82) - ALGBRC(84)))/ALGBRC(85))/(1.00000+ CONSTS(46)*EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113)))
      ALGBRC(107) = ALGBRC(36)+ALGBRC(39)+ 3.00000*ALGBRC(88)+ 3.00000*ALGBRC(43)+ALGBRC(76)
      ALGBRC(31) =  (1.00000/CONSTS(113))*log(CONSTS(22)/STATES(3))
      ALGBRC(37) =  CONSTS(102)*CONSTS(25)*STATES(7) ** 3.00000*STATES(8)*STATES(9)*(STATES(1) - ALGBRC(31))
      ALGBRC(40) =  CONSTS(102)*CONSTS(26)*(STATES(1) - ALGBRC(31))
      ALGBRC(44) = (( CONSTS(102)*CONSTS(27)*ALGBRC(42)*CONSTS(21))/(1.00000+CONSTS(28)/STATES(3) ** 4.00000))/(CONSTS(21)+CONSTS(29))
      ALGBRC(71) = ( CONSTS(37)*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.750000*STATES(3)*EXP( STATES(1)*CONSTS(113)) -  0.750000*CONSTS(22)))/(EXP( STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(77) =  CONSTS(103)*ALGBRC(71)*STATES(17)*STATES(18)*((1.00000 - STATES(20))+CONSTS(95))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(81) = 1.00000/(1.00000+CONSTS(48)/STATES(6) ** 2.00000)
      ALGBRC(83) =  EXP( CONSTS(47)*STATES(1)*CONSTS(113))*STATES(3) ** 3.00000*CONSTS(23)
      ALGBRC(86) =  EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113))*CONSTS(22) ** 3.00000*STATES(6)
      ALGBRC(87) =  CONSTS(42)*CONSTS(22) ** 3.00000*(1.00000+STATES(3)/CONSTS(44) ** 3.00000)+ CONSTS(45) ** 3.00000*STATES(6)*(1.00000+STATES(6)/CONSTS(42))+ CONSTS(43)*STATES(3) ** 3.00000+ STATES(3) ** 3.00000*CONSTS(23)+ CONSTS(22) ** 3.00000*STATES(6)
      ALGBRC(89) = (( CONSTS(102)*CONSTS(41)*CONSTS(49) ** CONSTS(114)*ALGBRC(81)*(ALGBRC(83) - ALGBRC(86)))/ALGBRC(87))/(1.00000+ CONSTS(46)*EXP( (CONSTS(47) - 1.00000)*STATES(1)*CONSTS(113)))
      ALGBRC(108) = ALGBRC(37)+ALGBRC(40)+ 3.00000*ALGBRC(89)+ 3.00000*ALGBRC(44)+ALGBRC(77)
      ALGBRC(105) = ( CONSTS(88)*STATES(5)*(CONSTS(122) - STATES(35)) -  CONSTS(87)*STATES(35))+( CONSTS(90)*STATES(5)*(CONSTS(124) - STATES(37)) -  CONSTS(89)*STATES(37))
      ALGBRC(67) = ( CONSTS(38)*4.00000*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.341000*STATES(5)*EXP( 2.00000*STATES(1)*CONSTS(113)) -  0.341000*CONSTS(23)))/(EXP( 2.00000*STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(72) =  CONSTS(20)*ALGBRC(67)*STATES(17)*STATES(18)*((1.00000 - STATES(19))+CONSTS(96))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(92) = ( CONSTS(19)*CONSTS(53) ** CONSTS(114)*CONSTS(50)*STATES(5) ** 1.60000)/(CONSTS(51) ** 1.60000+STATES(5) ** 1.60000)
      ALGBRC(34) =  ((1.00000/CONSTS(113))/2.00000)*log(CONSTS(23)/STATES(5))
      ALGBRC(96) =  CONSTS(19)*CONSTS(52)*(STATES(1) - ALGBRC(34))
      ALGBRC(110) = (ALGBRC(72)+ALGBRC(96)+ALGBRC(92)) -  2.00000*ALGBRC(88)
      ALGBRC(106) = ( CONSTS(88)*STATES(6)*(CONSTS(121) - STATES(36)) -  CONSTS(87)*STATES(36))+( CONSTS(90)*STATES(6)*(CONSTS(123) - STATES(38)) -  CONSTS(89)*STATES(38))
      ALGBRC(68) = ( CONSTS(38)*4.00000*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.341000*STATES(6)*EXP( 2.00000*STATES(1)*CONSTS(113)) -  0.341000*CONSTS(23)))/(EXP( 2.00000*STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(73) =  CONSTS(103)*ALGBRC(68)*STATES(17)*STATES(18)*((1.00000 - STATES(20))+CONSTS(95))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(94) = ( CONSTS(102)*CONSTS(53) ** CONSTS(114)*CONSTS(50)*STATES(6) ** 1.60000)/(CONSTS(51) ** 1.60000+STATES(6) ** 1.60000)
      ALGBRC(35) =  ((1.00000/CONSTS(113))/2.00000)*log(CONSTS(23)/STATES(6))
      ALGBRC(97) =  CONSTS(102)*CONSTS(52)*(STATES(1) - ALGBRC(35))
      ALGBRC(111) = (ALGBRC(73)+ALGBRC(97)+ALGBRC(94)) -  2.00000*ALGBRC(89)
      ALGBRC(10) = TERNRY(VOI.GT.500.000.AND.VOI.LT.5500.00, CONSTS(2), CONSTS(1))
      ALGBRC(23) = (ALGBRC(10) - STATES(1))/CONSTS(3)
      ALGBRC(45) = ALGBRC(43)+ALGBRC(44)
      ALGBRC(33) =  (1.00000/CONSTS(113))*log(CONSTS(21)/STATES(4))
      ALGBRC(46) = 1.00000/(1.00000+EXP((STATES(1)+74.0000)/24.0000))
      ALGBRC(47) =  CONSTS(105)*STATES(10)*ALGBRC(46)*(STATES(1) - ALGBRC(33))
      ALGBRC(48) = 1.00000/(1.00000+EXP(7.48800 - STATES(1)/5.98000))
      ALGBRC(49) =  CONSTS(19)*CONSTS(33)*ALGBRC(48)*(STATES(1) - ALGBRC(33))
      ALGBRC(50) =  CONSTS(102)*CONSTS(33)*ALGBRC(48)*(STATES(1) - ALGBRC(33))
      ALGBRC(51) = ALGBRC(49)+ALGBRC(50)
      ALGBRC(52) =  (1.00000/CONSTS(113))*log((CONSTS(21)+ CONSTS(32)*CONSTS(22))/(STATES(4)+ CONSTS(32)*STATES(12)))
      ALGBRC(53) =  CONSTS(19)*CONSTS(93)*STATES(11) ** 2.00000*(STATES(1) - ALGBRC(52))
      ALGBRC(54) =  CONSTS(102)*CONSTS(94)*STATES(11) ** 2.00000*(STATES(1) - ALGBRC(52))
      ALGBRC(55) = ALGBRC(53)+ALGBRC(54)
      ALGBRC(56) =  CONSTS(106)*STATES(13)*STATES(14)*(STATES(1) - ALGBRC(33))
      ALGBRC(57) =  CONSTS(107)*STATES(15)*STATES(16)*(STATES(1) - ALGBRC(33))
      ALGBRC(58) = ALGBRC(56)+ALGBRC(57)
      ALGBRC(59) = 1.02000/(1.00000+EXP( 0.238500*((STATES(1) - ALGBRC(33)) - 59.2150)))
      ALGBRC(60) = ( 0.491240*EXP( 0.0803200*((STATES(1)+5.47600) - ALGBRC(33)))+EXP( 0.0617500*((STATES(1) - ALGBRC(33)) - 594.310)))/(1.00000+EXP( - 0.514300*((STATES(1) - ALGBRC(33))+4.75300)))
      ALGBRC(61) = ALGBRC(59)/(ALGBRC(59)+ALGBRC(60))
      ALGBRC(62) =  1.00000*0.350000* (CONSTS(21)/5.40000) ** (1.0 / 2)*ALGBRC(61)*(STATES(1) - ALGBRC(33))
      ALGBRC(69) = ( CONSTS(39)*STATES(1)*CONSTS(99)*CONSTS(113)*( 0.750000*STATES(4)*EXP( STATES(1)*CONSTS(113)) -  0.750000*CONSTS(21)))/(EXP( STATES(1)*CONSTS(113)) - 1.00000)
      ALGBRC(75) =  ALGBRC(69)*STATES(17)*STATES(18)*( CONSTS(20)*(CONSTS(96)+(1.00000 - STATES(19)))+ CONSTS(103)*(CONSTS(95)+(1.00000 - STATES(20))))*CONSTS(40) ** CONSTS(114)*0.450000*1.00000
      ALGBRC(109) = ((ALGBRC(58)+ALGBRC(47)+ALGBRC(55)+ALGBRC(62)) -  2.00000*ALGBRC(45))+ALGBRC(75)+ALGBRC(51)
      ALGBRC(112) = ALGBRC(107)+ALGBRC(108)
      ALGBRC(63) =  (( CONSTS(19)*CONSTS(34))/(1.00000+CONSTS(36)/STATES(5)))*(STATES(1) - CONSTS(126))
      ALGBRC(64) =  (( CONSTS(102)*CONSTS(34))/(1.00000+CONSTS(36)/STATES(6)))*(STATES(1) - CONSTS(126))
      ALGBRC(65) = ALGBRC(63)+ALGBRC(64)
      ALGBRC(66) =  CONSTS(35)*(STATES(1) - CONSTS(126))
      ALGBRC(113) = ALGBRC(65)+ALGBRC(66)
      ALGBRC(114) = ALGBRC(110)+ALGBRC(111)
      ALGBRC(115) = ALGBRC(112)+ALGBRC(113)+ALGBRC(114)+ALGBRC(109)
      ALGBRC(38) = ALGBRC(36)+ALGBRC(37)
      ALGBRC(41) = ALGBRC(39)+ALGBRC(40)
      ALGBRC(74) = ALGBRC(72)+ALGBRC(73)
      ALGBRC(78) = ALGBRC(76)+ALGBRC(77)
      ALGBRC(80) = ALGBRC(74)+ALGBRC(75)+ALGBRC(78)
      ALGBRC(90) =  3.00000*ALGBRC(88)+ 3.00000*ALGBRC(43)+ALGBRC(76)
      ALGBRC(91) = ALGBRC(88)+ALGBRC(89)
      ALGBRC(93) =  3.00000*ALGBRC(89)+ 3.00000*ALGBRC(44)+ALGBRC(77)
      ALGBRC(95) = ALGBRC(92)+ALGBRC(94)
      ALGBRC(98) = ALGBRC(96)+ALGBRC(97)
      RETURN
      END
      REAL FUNCTION TERNRY(TEST, VALA, VALB)
      LOGICAL TEST
      REAL VALA, VALB
      IF (TEST) THEN
        TERNRY = VALA
      ELSE
        TERNRY = VALB
      ENDIF
      RETURN
      END