C C There are a total of 52 entries in the algebraic variable array. C There are a total of 15 entries in each of the rate and state variable arrays. C There are a total of 133 entries in the constant variable array. C C C VOI is time in component environment (second). C CONSTS(1) is Version in component membrane (dimensionless). C CONSTS(2) is dCell in component membrane (dimensionless). C CONSTS(3) is FCellConstant in component membrane (dimensionless). C CONSTS(111) is FCell in component membrane (dimensionless). C STATES(1) is V in component membrane (millivolt). C CONSTS(4) is R in component membrane (millijoule_per_mole_kelvin). C CONSTS(5) is T in component membrane (kelvin). C CONSTS(6) is F in component membrane (coulomb_per_mole). C CONSTS(117) is Cm in component membrane (microF). C CONSTS(7) is CmCentre in component membrane (microF). C CONSTS(8) is CmPeriphery in component membrane (microF). C ALGBRC(28) is i_Na in component sodium_current (nanoA). C ALGBRC(35) is i_Ca_L in component L_type_Ca_channel (nanoA). C ALGBRC(40) is i_Ca_T in component T_type_Ca_channel (nanoA). C ALGBRC(41) is i_to in component four_AP_sensitive_currents (nanoA). C ALGBRC(42) is i_sus in component four_AP_sensitive_currents (nanoA). C ALGBRC(44) is i_K_r in component rapid_delayed_rectifying_potassium_current (nanoA). C ALGBRC(45) is i_K_s in component slow_delayed_rectifying_potassium_current (nanoA). C ALGBRC(46) is i_f_Na in component hyperpolarisation_activated_current (nanoA). C ALGBRC(47) is i_f_K in component hyperpolarisation_activated_current (nanoA). C ALGBRC(48) is i_b_Na in component sodium_background_current (nanoA). C ALGBRC(50) is i_b_Ca in component calcium_background_current (nanoA). C ALGBRC(49) is i_b_K in component potassium_background_current (nanoA). C ALGBRC(51) is i_NaCa in component sodium_calcium_exchanger (nanoA). C ALGBRC(52) is i_p in component sodium_potassium_pump (nanoA). C CONSTS(133) is i_Ca_p in component persistent_calcium_current (nanoA). C CONSTS(118) is g_Na in component sodium_current (microlitre_per_second). C CONSTS(9) is g_Na_Centre_Published in component sodium_current (microlitre_per_second). C CONSTS(10) is g_Na_Centre_0DCapable in component sodium_current (microlitre_per_second). C CONSTS(11) is g_Na_Centre_1DCapable in component sodium_current (microlitre_per_second). C CONSTS(12) is g_Na_Periphery_Published in component sodium_current (microlitre_per_second). C CONSTS(13) is g_Na_Periphery_0DCapable in component sodium_current (microlitre_per_second). C CONSTS(14) is g_Na_Periphery_1DCapable in component sodium_current (microlitre_per_second). C CONSTS(112) is E_Na in component reversal_and_equilibrium_potentials (millivolt). C CONSTS(15) is Na_o in component ionic_concentrations (millimolar). C STATES(2) is m in component sodium_current_m_gate (dimensionless). C ALGBRC(14) is h in component sodium_current_h_gate (dimensionless). C ALGBRC(2) is m_infinity in component sodium_current_m_gate (dimensionless). C ALGBRC(15) is tau_m in component sodium_current_m_gate (second). C ALGBRC(1) is F_Na in component sodium_current_h_gate (dimensionless). C STATES(3) is h1 in component sodium_current_h_gate (dimensionless). C STATES(4) is h2 in component sodium_current_h_gate (dimensionless). C ALGBRC(3) is h1_infinity in component sodium_current_h_gate (dimensionless). C ALGBRC(16) is h2_infinity in component sodium_current_h_gate (dimensionless). C ALGBRC(17) is tau_h1 in component sodium_current_h_gate (second). C ALGBRC(29) is tau_h2 in component sodium_current_h_gate (second). C CONSTS(16) is g_Ca_L_Centre_Published in component L_type_Ca_channel (microS). C CONSTS(17) is g_Ca_L_Centre_0DCapable in component L_type_Ca_channel (microS). C CONSTS(18) is g_Ca_L_Centre_1DCapable in component L_type_Ca_channel (microS). C CONSTS(19) is g_Ca_L_Periphery_Published in component L_type_Ca_channel (microS). C CONSTS(20) is g_Ca_L_Periphery_0DCapable in component L_type_Ca_channel (microS). C CONSTS(21) is g_Ca_L_Periphery_1DCapable in component L_type_Ca_channel (microS). C CONSTS(119) is g_Ca_L in component L_type_Ca_channel (microS). C CONSTS(22) is E_Ca_L in component L_type_Ca_channel (millivolt). C STATES(5) is d_L in component L_type_Ca_channel_d_gate (dimensionless). C STATES(6) is f_L in component L_type_Ca_channel_f_gate (dimensionless). C ALGBRC(4) is alpha_d_L in component L_type_Ca_channel_d_gate (per_second). C ALGBRC(18) is beta_d_L in component L_type_Ca_channel_d_gate (per_second). C ALGBRC(36) is d_L_infinity in component L_type_Ca_channel_d_gate (dimensionless). C ALGBRC(30) is tau_d_L in component L_type_Ca_channel_d_gate (second). C ALGBRC(5) is alpha_f_L in component L_type_Ca_channel_f_gate (per_second). C ALGBRC(19) is beta_f_L in component L_type_Ca_channel_f_gate (per_second). C ALGBRC(37) is f_L_infinity in component L_type_Ca_channel_f_gate (dimensionless). C ALGBRC(31) is tau_f_L in component L_type_Ca_channel_f_gate (second). C CONSTS(23) is g_Ca_T_Centre_Published in component T_type_Ca_channel (microS). C CONSTS(24) is g_Ca_T_Centre_0DCapable in component T_type_Ca_channel (microS). C CONSTS(25) is g_Ca_T_Centre_1DCapable in component T_type_Ca_channel (microS). C CONSTS(26) is g_Ca_T_Periphery_Published in component T_type_Ca_channel (microS). C CONSTS(27) is g_Ca_T_Periphery_0DCapable in component T_type_Ca_channel (microS). C CONSTS(28) is g_Ca_T_Periphery_1DCapable in component T_type_Ca_channel (microS). C CONSTS(120) is g_Ca_T in component T_type_Ca_channel (microS). C CONSTS(29) is E_Ca_T in component T_type_Ca_channel (millivolt). C STATES(7) is d_T in component T_type_Ca_channel_d_gate (dimensionless). C STATES(8) is f_T in component T_type_Ca_channel_f_gate (dimensionless). C ALGBRC(6) is alpha_d_T in component T_type_Ca_channel_d_gate (per_second). C ALGBRC(20) is beta_d_T in component T_type_Ca_channel_d_gate (per_second). C ALGBRC(38) is d_T_infinity in component T_type_Ca_channel_d_gate (dimensionless). C ALGBRC(32) is tau_d_T in component T_type_Ca_channel_d_gate (second). C ALGBRC(7) is alpha_f_T in component T_type_Ca_channel_f_gate (per_second). C ALGBRC(21) is beta_f_T in component T_type_Ca_channel_f_gate (per_second). C ALGBRC(39) is f_T_infinity in component T_type_Ca_channel_f_gate (dimensionless). C ALGBRC(33) is tau_f_T in component T_type_Ca_channel_f_gate (second). C CONSTS(30) is g_to_Centre_Published in component four_AP_sensitive_currents (microS). C CONSTS(31) is g_to_Centre_0DCapable in component four_AP_sensitive_currents (microS). C CONSTS(32) is g_to_Centre_1DCapable in component four_AP_sensitive_currents (microS). C CONSTS(33) is g_to_Periphery_Published in component four_AP_sensitive_currents (microS). C CONSTS(34) is g_to_Periphery_0DCapable in component four_AP_sensitive_currents (microS). C CONSTS(35) is g_to_Periphery_1DCapable in component four_AP_sensitive_currents (microS). C CONSTS(121) is g_to in component four_AP_sensitive_currents (microS). C CONSTS(36) is g_sus_Centre_Published in component four_AP_sensitive_currents (microS). C CONSTS(37) is g_sus_Centre_0DCapable in component four_AP_sensitive_currents (microS). C CONSTS(38) is g_sus_Centre_1DCapable in component four_AP_sensitive_currents (microS). C CONSTS(39) is g_sus_Periphery_Published in component four_AP_sensitive_currents (microS). C CONSTS(40) is g_sus_Periphery_0DCapable in component four_AP_sensitive_currents (microS). C CONSTS(41) is g_sus_Periphery_1DCapable in component four_AP_sensitive_currents (microS). C CONSTS(122) is g_sus in component four_AP_sensitive_currents (microS). C CONSTS(113) is E_K in component reversal_and_equilibrium_potentials (millivolt). C STATES(9) is q in component four_AP_sensitive_currents_q_gate (dimensionless). C STATES(10) is r in component four_AP_sensitive_currents_r_gate (dimensionless). C ALGBRC(8) is q_infinity in component four_AP_sensitive_currents_q_gate (dimensionless). C ALGBRC(22) is tau_q in component four_AP_sensitive_currents_q_gate (second). C ALGBRC(9) is r_infinity in component four_AP_sensitive_currents_r_gate (dimensionless). C ALGBRC(23) is tau_r in component four_AP_sensitive_currents_r_gate (second). C CONSTS(42) is g_K_r_Centre_Published in component rapid_delayed_rectifying_potassium_current (microS). C CONSTS(43) is g_K_r_Centre_0DCapable in component rapid_delayed_rectifying_potassium_current (microS). C CONSTS(44) is g_K_r_Centre_1DCapable in component rapid_delayed_rectifying_potassium_current (microS). C CONSTS(45) is g_K_r_Periphery_Published in component rapid_delayed_rectifying_potassium_current (microS). C CONSTS(46) is g_K_r_Periphery_0DCapable in component rapid_delayed_rectifying_potassium_current (microS). C CONSTS(47) is g_K_r_Periphery_1DCapable in component rapid_delayed_rectifying_potassium_current (microS). C CONSTS(123) is g_K_r in component rapid_delayed_rectifying_potassium_current (microS). C ALGBRC(43) is P_a in component rapid_delayed_rectifying_potassium_current (dimensionless). C STATES(11) is P_af in component rapid_delayed_rectifying_potassium_current_P_af_gate (dimensionless). C STATES(12) is P_as in component rapid_delayed_rectifying_potassium_current_P_as_gate (dimensionless). C STATES(13) is P_i in component rapid_delayed_rectifying_potassium_current_P_i_gate (dimensionless). C ALGBRC(10) is P_af_infinity in component rapid_delayed_rectifying_potassium_current_P_af_gate (dimensionless). C ALGBRC(24) is tau_P_af in component rapid_delayed_rectifying_potassium_current_P_af_gate (second). C ALGBRC(25) is P_as_infinity in component rapid_delayed_rectifying_potassium_current_P_as_gate (dimensionless). C ALGBRC(34) is tau_P_as in component rapid_delayed_rectifying_potassium_current_P_as_gate (second). C ALGBRC(11) is P_i_infinity in component rapid_delayed_rectifying_potassium_current_P_i_gate (dimensionless). C CONSTS(114) is tau_P_i in component rapid_delayed_rectifying_potassium_current_P_i_gate (second). C CONSTS(48) is g_K_s_Centre_Published in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(49) is g_K_s_Centre_0DCapable in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(50) is g_K_s_Centre_1DCapable in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(51) is g_K_s_Periphery_Published in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(52) is g_K_s_Periphery_0DCapable in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(53) is g_K_s_Periphery_1DCapable in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(124) is g_K_s in component slow_delayed_rectifying_potassium_current (microS). C CONSTS(115) is E_K_s in component reversal_and_equilibrium_potentials (millivolt). C STATES(14) is xs in component slow_delayed_rectifying_potassium_current_xs_gate (dimensionless). C ALGBRC(12) is alpha_xs in component slow_delayed_rectifying_potassium_current_xs_gate (per_second). C ALGBRC(26) is beta_xs in component slow_delayed_rectifying_potassium_current_xs_gate (per_second). C CONSTS(54) is g_f_Na_Centre_Published in component hyperpolarisation_activated_current (microS). C CONSTS(55) is g_f_Na_Centre_0DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(56) is g_f_Na_Centre_1DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(57) is g_f_Na_Periphery_Published in component hyperpolarisation_activated_current (microS). C CONSTS(58) is g_f_Na_Periphery_0DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(59) is g_f_Na_Periphery_1DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(125) is g_f_Na in component hyperpolarisation_activated_current (microS). C CONSTS(60) is g_f_K_Centre_Published in component hyperpolarisation_activated_current (microS). C CONSTS(61) is g_f_K_Centre_0DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(62) is g_f_K_Centre_1DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(63) is g_f_K_Periphery_Published in component hyperpolarisation_activated_current (microS). C CONSTS(64) is g_f_K_Periphery_0DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(65) is g_f_K_Periphery_1DCapable in component hyperpolarisation_activated_current (microS). C CONSTS(126) is g_f_K in component hyperpolarisation_activated_current (microS). C STATES(15) is y in component hyperpolarisation_activated_current_y_gate (dimensionless). C ALGBRC(13) is alpha_y in component hyperpolarisation_activated_current_y_gate (per_second). C ALGBRC(27) is beta_y in component hyperpolarisation_activated_current_y_gate (per_second). C CONSTS(66) is g_b_Na_Centre_Published in component sodium_background_current (microS). C CONSTS(67) is g_b_Na_Centre_0DCapable in component sodium_background_current (microS). C CONSTS(68) is g_b_Na_Centre_1DCapable in component sodium_background_current (microS). C CONSTS(69) is g_b_Na_Periphery_Published in component sodium_background_current (microS). C CONSTS(70) is g_b_Na_Periphery_0DCapable in component sodium_background_current (microS). C CONSTS(71) is g_b_Na_Periphery_1DCapable in component sodium_background_current (microS). C CONSTS(127) is g_b_Na in component sodium_background_current (microS). C CONSTS(72) is g_b_K_Centre_Published in component potassium_background_current (microS). C CONSTS(73) is g_b_K_Centre_0DCapable in component potassium_background_current (microS). C CONSTS(74) is g_b_K_Centre_1DCapable in component potassium_background_current (microS). C CONSTS(75) is g_b_K_Periphery_Published in component potassium_background_current (microS). C CONSTS(76) is g_b_K_Periphery_0DCapable in component potassium_background_current (microS). C CONSTS(77) is g_b_K_Periphery_1DCapable in component potassium_background_current (microS). C CONSTS(128) is g_b_K in component potassium_background_current (microS). C CONSTS(78) is g_b_Ca_Centre_Published in component calcium_background_current (microS). C CONSTS(79) is g_b_Ca_Centre_0DCapable in component calcium_background_current (microS). C CONSTS(80) is g_b_Ca_Centre_1DCapable in component calcium_background_current (microS). C CONSTS(81) is g_b_Ca_Periphery_Published in component calcium_background_current (microS). C CONSTS(82) is g_b_Ca_Periphery_0DCapable in component calcium_background_current (microS). C CONSTS(83) is g_b_Ca_Periphery_1DCapable in component calcium_background_current (microS). C CONSTS(129) is g_b_Ca in component calcium_background_current (microS). C CONSTS(116) is E_Ca in component reversal_and_equilibrium_potentials (millivolt). C CONSTS(84) is k_NaCa_Centre_Published in component sodium_calcium_exchanger (nanoA). C CONSTS(85) is k_NaCa_Centre_0DCapable in component sodium_calcium_exchanger (nanoA). C CONSTS(86) is k_NaCa_Centre_1DCapable in component sodium_calcium_exchanger (nanoA). C CONSTS(87) is k_NaCa_Periphery_Published in component sodium_calcium_exchanger (nanoA). C CONSTS(88) is k_NaCa_Periphery_0DCapable in component sodium_calcium_exchanger (nanoA). C CONSTS(89) is k_NaCa_Periphery_1DCapable in component sodium_calcium_exchanger (nanoA). C CONSTS(130) is k_NaCa in component sodium_calcium_exchanger (nanoA). C CONSTS(90) is d_NaCa in component sodium_calcium_exchanger (dimensionless). C CONSTS(91) is gamma_NaCa in component sodium_calcium_exchanger (dimensionless). C CONSTS(92) is Na_i in component ionic_concentrations (millimolar). C CONSTS(93) is Ca_i in component ionic_concentrations (millimolar). C CONSTS(94) is Ca_o in component ionic_concentrations (millimolar). C CONSTS(95) is K_m_Na in component sodium_potassium_pump (millimolar). C CONSTS(96) is K_m_K in component sodium_potassium_pump (millimolar). C CONSTS(97) is i_p_max_Centre_Published in component sodium_potassium_pump (nanoA). C CONSTS(98) is i_p_max_Centre_0DCapable in component sodium_potassium_pump (nanoA). C CONSTS(99) is i_p_max_Centre_1DCapable in component sodium_potassium_pump (nanoA). C CONSTS(100) is i_p_max_Periphery_Published in component sodium_potassium_pump (nanoA). C CONSTS(101) is i_p_max_Periphery_0DCapable in component sodium_potassium_pump (nanoA). C CONSTS(102) is i_p_max_Periphery_1DCapable in component sodium_potassium_pump (nanoA). C CONSTS(131) is i_p_max in component sodium_potassium_pump (nanoA). C CONSTS(103) is K_o in component ionic_concentrations (millimolar). C CONSTS(104) is i_Ca_p_max_Centre_Published in component persistent_calcium_current (nanoA). C CONSTS(105) is i_Ca_p_max_Centre_0DCapable in component persistent_calcium_current (nanoA). C CONSTS(106) is i_Ca_p_max_Centre_1DCapable in component persistent_calcium_current (nanoA). C CONSTS(107) is i_Ca_p_max_Periphery_Published in component persistent_calcium_current (nanoA). C CONSTS(108) is i_Ca_p_max_Periphery_0DCapable in component persistent_calcium_current (nanoA). C CONSTS(109) is i_Ca_p_max_Periphery_1DCapable in component persistent_calcium_current (nanoA). C CONSTS(132) is i_Ca_p_max in component persistent_calcium_current (nanoA). C CONSTS(110) is K_i in component ionic_concentrations (millimolar). C RATES(1) is d/dt V in component membrane (millivolt). C RATES(2) is d/dt m in component sodium_current_m_gate (dimensionless). C RATES(3) is d/dt h1 in component sodium_current_h_gate (dimensionless). C RATES(4) is d/dt h2 in component sodium_current_h_gate (dimensionless). C RATES(5) is d/dt d_L in component L_type_Ca_channel_d_gate (dimensionless). C RATES(6) is d/dt f_L in component L_type_Ca_channel_f_gate (dimensionless). C RATES(7) is d/dt d_T in component T_type_Ca_channel_d_gate (dimensionless). C RATES(8) is d/dt f_T in component T_type_Ca_channel_f_gate (dimensionless). C RATES(9) is d/dt q in component four_AP_sensitive_currents_q_gate (dimensionless). C RATES(10) is d/dt r in component four_AP_sensitive_currents_r_gate (dimensionless). C RATES(11) is d/dt P_af in component rapid_delayed_rectifying_potassium_current_P_af_gate (dimensionless). C RATES(12) is d/dt P_as in component rapid_delayed_rectifying_potassium_current_P_as_gate (dimensionless). C RATES(13) is d/dt P_i in component rapid_delayed_rectifying_potassium_current_P_i_gate (dimensionless). C RATES(14) is d/dt xs in component slow_delayed_rectifying_potassium_current_xs_gate (dimensionless). C RATES(15) is d/dt y in component hyperpolarisation_activated_current_y_gate (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 1 CONSTS(2) = 0 CONSTS(3) = 1.0309347 STATES(1) = -39.013558536 CONSTS(4) = 8314 CONSTS(5) = 310 CONSTS(6) = 96845 CONSTS(7) = 2e-5 CONSTS(8) = 6.5e-5 CONSTS(9) = 0 CONSTS(10) = 0 CONSTS(11) = 0 CONSTS(12) = 1.2e-6 CONSTS(13) = 1.204e-6 CONSTS(14) = 3.7e-7 CONSTS(15) = 140 STATES(2) = 0.092361701692 STATES(3) = 0.015905380261 STATES(4) = 0.01445216109 CONSTS(16) = 0.0058 CONSTS(17) = 0.0057938 CONSTS(18) = 0.0082 CONSTS(19) = 0.0659 CONSTS(20) = 0.06588648 CONSTS(21) = 0.0659 CONSTS(22) = 46.4 STATES(5) = 0.04804900895 STATES(6) = 0.48779845203 CONSTS(23) = 0.0043 CONSTS(24) = 0.00427806 CONSTS(25) = 0.0021 CONSTS(26) = 0.0139 CONSTS(27) = 0.0138823 CONSTS(28) = 0.00694 CONSTS(29) = 45 STATES(7) = 0.42074047435 STATES(8) = 0.038968420558 CONSTS(30) = 0.00491 CONSTS(31) = 0.004905 CONSTS(32) = 0.004905 CONSTS(33) = 0.03649 CONSTS(34) = 0.036495 CONSTS(35) = 0.0365 CONSTS(36) = 6.65e-5 CONSTS(37) = 6.645504e-5 CONSTS(38) = 0.000266 CONSTS(39) = 0.0114 CONSTS(40) = 0.01138376 CONSTS(41) = 0.0114 STATES(9) = 0.29760539675 STATES(10) = 0.064402950262 CONSTS(42) = 0.000797 CONSTS(43) = 0.00079704 CONSTS(44) = 0.000738 CONSTS(45) = 0.016 CONSTS(46) = 0.016 CONSTS(47) = 0.0208 STATES(11) = 0.13034201158 STATES(12) = 0.46960956028 STATES(13) = 0.87993375273 CONSTS(48) = 0.000518 CONSTS(49) = 0.0003445 CONSTS(50) = 0.000345 CONSTS(51) = 0.0104 CONSTS(52) = 0.0104 CONSTS(53) = 0.0104 STATES(14) = 0.082293827208 CONSTS(54) = 0.000548 CONSTS(55) = 0.0005465 CONSTS(56) = 0.000437 CONSTS(57) = 0.0069 CONSTS(58) = 0.006875 CONSTS(59) = 0.0055 CONSTS(60) = 0.000548 CONSTS(61) = 0.0005465 CONSTS(62) = 0.000437 CONSTS(63) = 0.0069 CONSTS(64) = 0.006875 CONSTS(65) = 0.0055 STATES(15) = 0.03889291759 CONSTS(66) = 5.8e-5 CONSTS(67) = 5.81818e-5 CONSTS(68) = 5.8e-5 CONSTS(69) = 0.000189 CONSTS(70) = 0.0001888 CONSTS(71) = 0.000189 CONSTS(72) = 2.52e-5 CONSTS(73) = 2.523636e-5 CONSTS(74) = 2.52e-5 CONSTS(75) = 8.19e-5 CONSTS(76) = 8.1892e-5 CONSTS(77) = 8.19e-5 CONSTS(78) = 1.32e-5 CONSTS(79) = 1.3236e-5 CONSTS(80) = 1.323e-5 CONSTS(81) = 4.3e-5 CONSTS(82) = 4.2952e-5 CONSTS(83) = 4.29e-5 CONSTS(84) = 2.7e-6 CONSTS(85) = 2.7229e-6 CONSTS(86) = 2.8e-6 CONSTS(87) = 8.8e-6 CONSTS(88) = 8.83584e-6 CONSTS(89) = 8.8e-6 CONSTS(90) = 0.0001 CONSTS(91) = 0.5 CONSTS(92) = 8 CONSTS(93) = 0.0001 CONSTS(94) = 2 CONSTS(95) = 5.64 CONSTS(96) = 0.621 CONSTS(97) = 0.0478 CONSTS(98) = 0.04782545 CONSTS(99) = 0.0478 CONSTS(100) = 0.16 CONSTS(101) = 0.1551936 CONSTS(102) = 0.16 CONSTS(103) = 5.4 CONSTS(104) = 0 CONSTS(105) = 0 CONSTS(106) = 0.0042 CONSTS(107) = 0 CONSTS(108) = 0 CONSTS(109) = 0.03339 CONSTS(110) = 140 CONSTS(111) = TERNRY(CONSTS(1).EQ.0.00000, ( 1.07000*( 3.00000*CONSTS(2) - 0.100000))/( 3.00000*(1.00000+ 0.774500*EXP(- ( 3.00000*CONSTS(2) - 2.05000)/0.295000))), TERNRY(CONSTS(1).EQ.1.00000, ( CONSTS(3)*CONSTS(2))/(1.00000+ 0.774500*EXP(- ( 3.00000*CONSTS(2) - 2.05000)/0.295000)), ( 1.07000*29.0000*CONSTS(2))/( 30.0000*(1.00000+ 0.774500*EXP(- ( 29.0000*CONSTS(2) - 24.5000)/1.95000)))) CONSTS(112) = (( CONSTS(4)*CONSTS(5))/CONSTS(6))*log(CONSTS(15)/CONSTS(92)) CONSTS(113) = (( CONSTS(4)*CONSTS(5))/CONSTS(6))*log(CONSTS(103)/CONSTS(110)) CONSTS(114) = TERNRY(CONSTS(1).EQ.0.00000, 0.00200000, TERNRY(CONSTS(1).EQ.1.00000, 0.00200000, 0.00600000) CONSTS(115) = TERNRY(CONSTS(1).EQ.0.00000, (( CONSTS(4)*CONSTS(5))/CONSTS(6))*log((CONSTS(103)+ 0.120000*CONSTS(15))/(CONSTS(110)+ 0.120000*CONSTS(92))), (( CONSTS(4)*CONSTS(5))/CONSTS(6))*log((CONSTS(103)+ 0.0300000*CONSTS(15))/(CONSTS(110)+ 0.0300000*CONSTS(92)))) CONSTS(116) = (( CONSTS(4)*CONSTS(5))/( 2.00000*CONSTS(6)))*log(CONSTS(94)/CONSTS(93)) CONSTS(117) = CONSTS(7)+ CONSTS(111)*(CONSTS(8) - CONSTS(7)) CONSTS(118) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(9)+ CONSTS(111)*(CONSTS(12) - CONSTS(9)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(10)+ CONSTS(111)*(CONSTS(13) - CONSTS(10)), CONSTS(11)+ CONSTS(111)*(CONSTS(14) - CONSTS(11))) CONSTS(119) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(16)+ CONSTS(111)*(CONSTS(19) - CONSTS(16)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(17)+ CONSTS(111)*(CONSTS(20) - CONSTS(17)), CONSTS(18)+ CONSTS(111)*(CONSTS(21) - CONSTS(18))) CONSTS(120) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(23)+ CONSTS(111)*(CONSTS(26) - CONSTS(23)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(24)+ CONSTS(111)*(CONSTS(27) - CONSTS(24)), CONSTS(25)+ CONSTS(111)*(CONSTS(28) - CONSTS(25))) CONSTS(121) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(30)+ CONSTS(111)*(CONSTS(33) - CONSTS(30)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(31)+ CONSTS(111)*(CONSTS(34) - CONSTS(31)), CONSTS(32)+ CONSTS(111)*(CONSTS(35) - CONSTS(32))) CONSTS(122) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(36)+ CONSTS(111)*(CONSTS(39) - CONSTS(36)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(37)+ CONSTS(111)*(CONSTS(40) - CONSTS(37)), CONSTS(38)+ CONSTS(111)*(CONSTS(41) - CONSTS(38))) CONSTS(123) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(42)+ CONSTS(111)*(CONSTS(45) - CONSTS(42)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(43)+ CONSTS(111)*(CONSTS(46) - CONSTS(43)), CONSTS(44)+ CONSTS(111)*(CONSTS(47) - CONSTS(44))) CONSTS(124) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(48)+ CONSTS(111)*(CONSTS(51) - CONSTS(48)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(49)+ CONSTS(111)*(CONSTS(52) - CONSTS(49)), CONSTS(50)+ CONSTS(111)*(CONSTS(53) - CONSTS(50))) CONSTS(125) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(54)+ CONSTS(111)*(CONSTS(57) - CONSTS(54)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(55)+ CONSTS(111)*(CONSTS(58) - CONSTS(55)), CONSTS(56)+ CONSTS(111)*(CONSTS(59) - CONSTS(56))) CONSTS(126) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(60)+ CONSTS(111)*(CONSTS(63) - CONSTS(60)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(61)+ CONSTS(111)*(CONSTS(64) - CONSTS(61)), CONSTS(62)+ CONSTS(111)*(CONSTS(65) - CONSTS(62))) CONSTS(127) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(66)+ CONSTS(111)*(CONSTS(69) - CONSTS(66)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(67)+ CONSTS(111)*(CONSTS(70) - CONSTS(67)), CONSTS(68)+ CONSTS(111)*(CONSTS(71) - CONSTS(68))) CONSTS(128) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(72)+ CONSTS(111)*(CONSTS(75) - CONSTS(72)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(73)+ CONSTS(111)*(CONSTS(76) - CONSTS(73)), CONSTS(74)+ CONSTS(111)*(CONSTS(77) - CONSTS(74))) CONSTS(129) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(78)+ CONSTS(111)*(CONSTS(81) - CONSTS(78)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(79)+ CONSTS(111)*(CONSTS(82) - CONSTS(79)), CONSTS(80)+ CONSTS(111)*(CONSTS(83) - CONSTS(80))) CONSTS(130) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(84)+ CONSTS(111)*(CONSTS(87) - CONSTS(84)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(85)+ CONSTS(111)*(CONSTS(88) - CONSTS(85)), CONSTS(86)+ CONSTS(111)*(CONSTS(89) - CONSTS(86))) CONSTS(131) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(97)+ CONSTS(111)*(CONSTS(100) - CONSTS(97)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(98)+ CONSTS(111)*(CONSTS(101) - CONSTS(98)), CONSTS(99)+ CONSTS(111)*(CONSTS(102) - CONSTS(99))) CONSTS(132) = TERNRY(CONSTS(1).EQ.0.00000, CONSTS(104)+ CONSTS(111)*(CONSTS(107) - CONSTS(104)), TERNRY(CONSTS(1).EQ.1.00000, CONSTS(105)+ CONSTS(111)*(CONSTS(108) - CONSTS(105)), CONSTS(106)+ CONSTS(111)*(CONSTS(109) - CONSTS(106))) CONSTS(133) = ( CONSTS(132)*CONSTS(93))/(CONSTS(93)+0.000400000) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(11) = 1.00000/(1.00000+EXP((STATES(1)+18.6000)/10.1000)) RATES(13) = (ALGBRC(11) - STATES(13))/CONSTS(114) ALGBRC(2) = TERNRY(CONSTS(1).EQ.0.00000, 1.00000/(1.00000+EXP(- STATES(1)/5.46000)) ** 1.00000/3.00000, 1.00000/(1.00000+EXP(- (STATES(1)+30.3200)/5.46000)) ** 1.00000/3.00000) ALGBRC(15) = TERNRY(CONSTS(1).EQ.0.00000, 0.000624700/( 0.832000*EXP( - 0.335000*(STATES(1)+56.7000))+ 0.627000*EXP( 0.0820000*(STATES(1)+65.0100)))+4.00000e-05, 0.000624700/( 0.832217*EXP( - 0.335660*(STATES(1)+56.7062))+ 0.627400*EXP( 0.0823000*(STATES(1)+65.0131)))+4.56900e-05) RATES(2) = (ALGBRC(2) - STATES(2))/ALGBRC(15) ALGBRC(3) = 1.00000/(1.00000+EXP((STATES(1)+66.1000)/6.40000)) ALGBRC(17) = ( 3.71700e-06*EXP( - 0.281500*(STATES(1)+17.1100)))/(1.00000+ 0.00373200*EXP( - 0.342600*(STATES(1)+37.7600)))+0.000597700 RATES(3) = (ALGBRC(3) - STATES(3))/ALGBRC(17) ALGBRC(8) = 1.00000/(1.00000+EXP((STATES(1)+59.3700)/13.1000)) ALGBRC(22) = TERNRY(CONSTS(1).EQ.0.00000, 0.0101000+0.0651700/( 0.570000*EXP( - 0.0800000*(STATES(1)+49.0000)))+ 2.40000e-05*EXP( 0.100000*(STATES(1)+50.9300)), TERNRY(CONSTS(1).EQ.1.00000, (0.00100000/3.00000)*(30.3100+195.500/( 0.568600*EXP( - 0.0816100*(STATES(1)+39.0000+ 10.0000*CONSTS(111)))+ 0.717400*EXP( (0.271900 - 0.171900*CONSTS(111))*1.00000*(STATES(1)+40.9300+ 10.0000*CONSTS(111))))), 0.0101000+0.0651700/( 0.568600*EXP( - 0.0816100*(STATES(1)+39.0000))+ 0.717400*EXP( 0.271900*(STATES(1)+40.9300)))) RATES(9) = (ALGBRC(8) - STATES(9))/ALGBRC(22) ALGBRC(9) = 1.00000/(1.00000+EXP(- (STATES(1) - 10.9300)/19.7000)) ALGBRC(23) = TERNRY(CONSTS(1).EQ.0.00000, 0.00100000*(2.98000+15.5900/( 1.03700*EXP( 0.0900000*(STATES(1)+30.6100))+ 0.369000*EXP( - 0.120000*(STATES(1)+23.8400)))), TERNRY(CONSTS(1).EQ.1.00000, 0.00250000*(1.19100+7.83800/( 1.03700*EXP( 0.0901200*(STATES(1)+30.6100))+ 0.369000*EXP( - 0.119000*(STATES(1)+23.8400)))), 0.00100000*(2.98000+19.5900/( 1.03700*EXP( 0.0901200*(STATES(1)+30.6100))+ 0.369000*EXP( - 0.119000*(STATES(1)+23.8400))))) RATES(10) = (ALGBRC(9) - STATES(10))/ALGBRC(23) ALGBRC(10) = TERNRY(CONSTS(1) .NE. 2.00000, 1.00000/(1.00000+EXP(- (STATES(1)+14.2000)/10.6000)), 1.00000/(1.00000+EXP(- (STATES(1)+13.2000)/10.6000))) ALGBRC(24) = TERNRY(CONSTS(1) .NE. 2.00000, 1.00000/( 37.2000*EXP((STATES(1) - 9.00000)/15.9000)+ 0.960000*EXP(- (STATES(1) - 9.00000)/22.5000)), 1.00000/( 37.2000*EXP((STATES(1) - 10.0000)/15.9000)+ 0.960000*EXP(- (STATES(1) - 10.0000)/22.5000))) RATES(11) = (ALGBRC(10) - STATES(11))/ALGBRC(24) ALGBRC(12) = 14.0000/(1.00000+EXP(- (STATES(1) - 40.0000)/9.00000)) ALGBRC(26) = 1.00000*EXP(- STATES(1)/45.0000) RATES(14) = ALGBRC(12)*(1.00000 - STATES(14)) - ALGBRC(26)*STATES(14) ALGBRC(13) = TERNRY(CONSTS(1).EQ.0.00000, 1.00000*EXP(- (STATES(1)+78.9100)/26.6200), 1.00000*EXP(- (STATES(1)+78.9100)/26.6300)) ALGBRC(27) = 1.00000*EXP((STATES(1)+75.1300)/21.2500) RATES(15) = ALGBRC(13)*(1.00000 - STATES(15)) - ALGBRC(27)*STATES(15) ALGBRC(16) = ALGBRC(3) ALGBRC(29) = ( 3.18600e-08*EXP( - 0.621900*(STATES(1)+18.8000)))/(1.00000+ 7.18900e-05*EXP( - 0.668300*(STATES(1)+34.0700)))+0.00355600 RATES(4) = (ALGBRC(16) - STATES(4))/ALGBRC(29) ALGBRC(25) = ALGBRC(10) ALGBRC(34) = TERNRY(CONSTS(1) .NE. 2.00000, 1.00000/( 4.20000*EXP((STATES(1) - 9.00000)/17.0000)+ 0.150000*EXP(- (STATES(1) - 9.00000)/21.6000)), 1.00000/( 4.20000*EXP((STATES(1) - 10.0000)/17.0000)+ 0.150000*EXP(- (STATES(1) - 10.0000)/21.6000))) RATES(12) = (ALGBRC(25) - STATES(12))/ALGBRC(34) ALGBRC(36) = TERNRY(CONSTS(1).EQ.0.00000, 1.00000/(1.00000+EXP(- (STATES(1)+23.1000)/6.00000)), TERNRY(CONSTS(1).EQ.1.00000, 1.00000/(1.00000+EXP(- (STATES(1)+22.3000+ 0.800000*CONSTS(111))/6.00000)), 1.00000/(1.00000+EXP(- (STATES(1)+22.2000)/6.00000))) ALGBRC(4) = TERNRY(CONSTS(1).EQ.0.00000, ( - 28.3800*(STATES(1)+35.0000))/(EXP(- (STATES(1)+35.0000)/2.50000) - 1.00000) - ( 84.9000*STATES(1))/(EXP( - 0.208000*STATES(1)) - 1.00000), TERNRY(CONSTS(1).EQ.1.00000, ( - 28.3900*(STATES(1)+35.0000))/(EXP(- (STATES(1)+35.0000)/2.50000) - 1.00000) - ( 84.9000*STATES(1))/(EXP( - 0.208000*STATES(1)) - 1.00000), ( - 28.4000*(STATES(1)+35.0000))/(EXP(- (STATES(1)+35.0000)/2.50000) - 1.00000) - ( 84.9000*STATES(1))/(EXP( - 0.208000*STATES(1)) - 1.00000)) ALGBRC(18) = TERNRY(CONSTS(1).EQ.1.00000, ( 11.4300*(STATES(1) - 5.00000))/(EXP( 0.400000*(STATES(1) - 5.00000)) - 1.00000), ( 11.4200*(STATES(1) - 5.00000))/(EXP( 0.400000*(STATES(1) - 5.00000)) - 1.00000)) ALGBRC(30) = 2.00000/(ALGBRC(4)+ALGBRC(18)) RATES(5) = (ALGBRC(36) - STATES(5))/ALGBRC(30) ALGBRC(37) = 1.00000/(1.00000+EXP((STATES(1)+45.0000)/5.00000)) ALGBRC(5) = TERNRY(CONSTS(1).EQ.1.00000, ( 3.75000*(STATES(1)+28.0000))/(EXP((STATES(1)+28.0000)/4.00000) - 1.00000), ( 3.12000*(STATES(1)+28.0000))/(EXP((STATES(1)+28.0000)/4.00000) - 1.00000)) ALGBRC(19) = TERNRY(CONSTS(1).EQ.1.00000, 30.0000/(1.00000+EXP(- (STATES(1)+28.0000)/4.00000)), 25.0000/(1.00000+EXP(- (STATES(1)+28.0000)/4.00000))) ALGBRC(31) = TERNRY(CONSTS(1).EQ.1.00000, (1.20000 - 0.200000*CONSTS(111))/(ALGBRC(5)+ALGBRC(19)), 1.00000/(ALGBRC(5)+ALGBRC(19))) RATES(6) = (ALGBRC(37) - STATES(6))/ALGBRC(31) ALGBRC(38) = 1.00000/(1.00000+EXP(- (STATES(1)+37.0000)/6.80000)) ALGBRC(6) = 1068.00*EXP((STATES(1)+26.3000)/30.0000) ALGBRC(20) = 1068.00*EXP(- (STATES(1)+26.3000)/30.0000) ALGBRC(32) = 1.00000/(ALGBRC(6)+ALGBRC(20)) RATES(7) = (ALGBRC(38) - STATES(7))/ALGBRC(32) ALGBRC(39) = 1.00000/(1.00000+EXP((STATES(1)+71.0000)/9.00000)) ALGBRC(7) = TERNRY(CONSTS(1).EQ.1.00000, 15.3000*EXP(- (STATES(1)+71.0000+ 0.700000*CONSTS(111))/83.3000), 15.3000*EXP(- (STATES(1)+71.7000)/83.3000)) ALGBRC(21) = TERNRY(CONSTS(1).EQ.1.00000, 15.0000*EXP((STATES(1)+71.0000)/15.3800), 15.0000*EXP((STATES(1)+71.7000)/15.3800)) ALGBRC(33) = 1.00000/(ALGBRC(7)+ALGBRC(21)) RATES(8) = (ALGBRC(39) - STATES(8))/ALGBRC(33) ALGBRC(1) = TERNRY(CONSTS(1).EQ.0.00000, ( 0.0952000*EXP( - 0.0630000*(STATES(1)+34.4000)))/(1.00000+ 1.66000*EXP( - 0.225000*(STATES(1)+63.7000)))+0.0869000, ( 0.0951800*EXP( - 0.0630600*(STATES(1)+34.4000)))/(1.00000+ 1.66200*EXP( - 0.225100*(STATES(1)+63.7000)))+0.0869300) ALGBRC(14) = (1.00000 - ALGBRC(1))*STATES(3)+ ALGBRC(1)*STATES(4) ALGBRC(28) = (( (( CONSTS(118)*STATES(2) ** 3.00000*ALGBRC(14)*CONSTS(15)*CONSTS(6) ** 2.00000)/( CONSTS(4)*CONSTS(5)))*(EXP(( (STATES(1) - CONSTS(112))*CONSTS(6))/( CONSTS(4)*CONSTS(5))) - 1.00000))/(EXP(( STATES(1)*CONSTS(6))/( CONSTS(4)*CONSTS(5))) - 1.00000))*STATES(1) ALGBRC(35) = CONSTS(119)*( STATES(6)*STATES(5)+0.00600000/(1.00000+EXP(- (STATES(1)+14.1000)/6.00000)))*(STATES(1) - CONSTS(22)) ALGBRC(40) = CONSTS(120)*STATES(7)*STATES(8)*(STATES(1) - CONSTS(29)) ALGBRC(41) = CONSTS(121)*STATES(9)*STATES(10)*(STATES(1) - CONSTS(113)) ALGBRC(42) = CONSTS(122)*STATES(10)*(STATES(1) - CONSTS(113)) ALGBRC(43) = 0.600000*STATES(11)+ 0.400000*STATES(12) ALGBRC(44) = CONSTS(123)*ALGBRC(43)*STATES(13)*(STATES(1) - CONSTS(113)) ALGBRC(45) = CONSTS(124)*STATES(14) ** 2.00000*(STATES(1) - CONSTS(115)) ALGBRC(46) = TERNRY(CONSTS(1) .NE. 2.00000, CONSTS(125)*STATES(15)*(STATES(1) - CONSTS(112)), CONSTS(125)*STATES(15)*(STATES(1) - 77.6000)) ALGBRC(47) = TERNRY(CONSTS(1) .NE. 2.00000, CONSTS(126)*STATES(15)*(STATES(1) - CONSTS(113)), CONSTS(126)*STATES(15)*(STATES(1)+102.000)) ALGBRC(48) = CONSTS(127)*(STATES(1) - CONSTS(112)) ALGBRC(50) = CONSTS(129)*(STATES(1) - CONSTS(116)) ALGBRC(49) = CONSTS(128)*(STATES(1) - CONSTS(113)) ALGBRC(51) = TERNRY(CONSTS(1).EQ.0.00000, ( CONSTS(130)*( CONSTS(92) ** 3.00000*CONSTS(94)*EXP( 0.0374300*STATES(1)*CONSTS(91)) - CONSTS(15) ** 3.00000*CONSTS(93)*EXP( 0.0374000*STATES(1)*(CONSTS(91) - 1.00000))))/(1.00000+ CONSTS(90)*( CONSTS(93)*CONSTS(15) ** 3.00000+ CONSTS(94)*CONSTS(92) ** 3.00000)), ( CONSTS(130)*( CONSTS(92) ** 3.00000*CONSTS(94)*EXP( 0.0374300*STATES(1)*CONSTS(91)) - CONSTS(15) ** 3.00000*CONSTS(93)*EXP( 0.0374300*STATES(1)*(CONSTS(91) - 1.00000))))/(1.00000+ CONSTS(90)*( CONSTS(93)*CONSTS(15) ** 3.00000+ CONSTS(94)*CONSTS(92) ** 3.00000))) ALGBRC(52) = ( CONSTS(131)*CONSTS(92)/(CONSTS(95)+CONSTS(92)) ** 3.00000*CONSTS(103)/(CONSTS(96)+CONSTS(103)) ** 2.00000*1.60000)/(1.50000+EXP(- (STATES(1)+60.0000)/40.0000)) RATES(1) = (- 1.00000/CONSTS(117))*(ALGBRC(28)+ALGBRC(35)+ALGBRC(40)+ALGBRC(41)+ALGBRC(42)+ALGBRC(44)+ALGBRC(45)+ALGBRC(46)+ALGBRC(47)+ALGBRC(48)+ALGBRC(50)+ALGBRC(49)+ALGBRC(51)+ALGBRC(52)+CONSTS(133)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(11) = 1.00000/(1.00000+EXP((STATES(1)+18.6000)/10.1000)) ALGBRC(2) = TERNRY(CONSTS(1).EQ.0.00000, 1.00000/(1.00000+EXP(- STATES(1)/5.46000)) ** 1.00000/3.00000, 1.00000/(1.00000+EXP(- (STATES(1)+30.3200)/5.46000)) ** 1.00000/3.00000) ALGBRC(15) = TERNRY(CONSTS(1).EQ.0.00000, 0.000624700/( 0.832000*EXP( - 0.335000*(STATES(1)+56.7000))+ 0.627000*EXP( 0.0820000*(STATES(1)+65.0100)))+4.00000e-05, 0.000624700/( 0.832217*EXP( - 0.335660*(STATES(1)+56.7062))+ 0.627400*EXP( 0.0823000*(STATES(1)+65.0131)))+4.56900e-05) ALGBRC(3) = 1.00000/(1.00000+EXP((STATES(1)+66.1000)/6.40000)) ALGBRC(17) = ( 3.71700e-06*EXP( - 0.281500*(STATES(1)+17.1100)))/(1.00000+ 0.00373200*EXP( - 0.342600*(STATES(1)+37.7600)))+0.000597700 ALGBRC(8) = 1.00000/(1.00000+EXP((STATES(1)+59.3700)/13.1000)) ALGBRC(22) = TERNRY(CONSTS(1).EQ.0.00000, 0.0101000+0.0651700/( 0.570000*EXP( - 0.0800000*(STATES(1)+49.0000)))+ 2.40000e-05*EXP( 0.100000*(STATES(1)+50.9300)), TERNRY(CONSTS(1).EQ.1.00000, (0.00100000/3.00000)*(30.3100+195.500/( 0.568600*EXP( - 0.0816100*(STATES(1)+39.0000+ 10.0000*CONSTS(111)))+ 0.717400*EXP( (0.271900 - 0.171900*CONSTS(111))*1.00000*(STATES(1)+40.9300+ 10.0000*CONSTS(111))))), 0.0101000+0.0651700/( 0.568600*EXP( - 0.0816100*(STATES(1)+39.0000))+ 0.717400*EXP( 0.271900*(STATES(1)+40.9300)))) ALGBRC(9) = 1.00000/(1.00000+EXP(- (STATES(1) - 10.9300)/19.7000)) ALGBRC(23) = TERNRY(CONSTS(1).EQ.0.00000, 0.00100000*(2.98000+15.5900/( 1.03700*EXP( 0.0900000*(STATES(1)+30.6100))+ 0.369000*EXP( - 0.120000*(STATES(1)+23.8400)))), TERNRY(CONSTS(1).EQ.1.00000, 0.00250000*(1.19100+7.83800/( 1.03700*EXP( 0.0901200*(STATES(1)+30.6100))+ 0.369000*EXP( - 0.119000*(STATES(1)+23.8400)))), 0.00100000*(2.98000+19.5900/( 1.03700*EXP( 0.0901200*(STATES(1)+30.6100))+ 0.369000*EXP( - 0.119000*(STATES(1)+23.8400))))) ALGBRC(10) = TERNRY(CONSTS(1) .NE. 2.00000, 1.00000/(1.00000+EXP(- (STATES(1)+14.2000)/10.6000)), 1.00000/(1.00000+EXP(- (STATES(1)+13.2000)/10.6000))) ALGBRC(24) = TERNRY(CONSTS(1) .NE. 2.00000, 1.00000/( 37.2000*EXP((STATES(1) - 9.00000)/15.9000)+ 0.960000*EXP(- (STATES(1) - 9.00000)/22.5000)), 1.00000/( 37.2000*EXP((STATES(1) - 10.0000)/15.9000)+ 0.960000*EXP(- (STATES(1) - 10.0000)/22.5000))) ALGBRC(12) = 14.0000/(1.00000+EXP(- (STATES(1) - 40.0000)/9.00000)) ALGBRC(26) = 1.00000*EXP(- STATES(1)/45.0000) ALGBRC(13) = TERNRY(CONSTS(1).EQ.0.00000, 1.00000*EXP(- (STATES(1)+78.9100)/26.6200), 1.00000*EXP(- (STATES(1)+78.9100)/26.6300)) ALGBRC(27) = 1.00000*EXP((STATES(1)+75.1300)/21.2500) ALGBRC(16) = ALGBRC(3) ALGBRC(29) = ( 3.18600e-08*EXP( - 0.621900*(STATES(1)+18.8000)))/(1.00000+ 7.18900e-05*EXP( - 0.668300*(STATES(1)+34.0700)))+0.00355600 ALGBRC(25) = ALGBRC(10) ALGBRC(34) = TERNRY(CONSTS(1) .NE. 2.00000, 1.00000/( 4.20000*EXP((STATES(1) - 9.00000)/17.0000)+ 0.150000*EXP(- (STATES(1) - 9.00000)/21.6000)), 1.00000/( 4.20000*EXP((STATES(1) - 10.0000)/17.0000)+ 0.150000*EXP(- (STATES(1) - 10.0000)/21.6000))) ALGBRC(36) = TERNRY(CONSTS(1).EQ.0.00000, 1.00000/(1.00000+EXP(- (STATES(1)+23.1000)/6.00000)), TERNRY(CONSTS(1).EQ.1.00000, 1.00000/(1.00000+EXP(- (STATES(1)+22.3000+ 0.800000*CONSTS(111))/6.00000)), 1.00000/(1.00000+EXP(- (STATES(1)+22.2000)/6.00000))) ALGBRC(4) = TERNRY(CONSTS(1).EQ.0.00000, ( - 28.3800*(STATES(1)+35.0000))/(EXP(- (STATES(1)+35.0000)/2.50000) - 1.00000) - ( 84.9000*STATES(1))/(EXP( - 0.208000*STATES(1)) - 1.00000), TERNRY(CONSTS(1).EQ.1.00000, ( - 28.3900*(STATES(1)+35.0000))/(EXP(- (STATES(1)+35.0000)/2.50000) - 1.00000) - ( 84.9000*STATES(1))/(EXP( - 0.208000*STATES(1)) - 1.00000), ( - 28.4000*(STATES(1)+35.0000))/(EXP(- (STATES(1)+35.0000)/2.50000) - 1.00000) - ( 84.9000*STATES(1))/(EXP( - 0.208000*STATES(1)) - 1.00000)) ALGBRC(18) = TERNRY(CONSTS(1).EQ.1.00000, ( 11.4300*(STATES(1) - 5.00000))/(EXP( 0.400000*(STATES(1) - 5.00000)) - 1.00000), ( 11.4200*(STATES(1) - 5.00000))/(EXP( 0.400000*(STATES(1) - 5.00000)) - 1.00000)) ALGBRC(30) = 2.00000/(ALGBRC(4)+ALGBRC(18)) ALGBRC(37) = 1.00000/(1.00000+EXP((STATES(1)+45.0000)/5.00000)) ALGBRC(5) = TERNRY(CONSTS(1).EQ.1.00000, ( 3.75000*(STATES(1)+28.0000))/(EXP((STATES(1)+28.0000)/4.00000) - 1.00000), ( 3.12000*(STATES(1)+28.0000))/(EXP((STATES(1)+28.0000)/4.00000) - 1.00000)) ALGBRC(19) = TERNRY(CONSTS(1).EQ.1.00000, 30.0000/(1.00000+EXP(- (STATES(1)+28.0000)/4.00000)), 25.0000/(1.00000+EXP(- (STATES(1)+28.0000)/4.00000))) ALGBRC(31) = TERNRY(CONSTS(1).EQ.1.00000, (1.20000 - 0.200000*CONSTS(111))/(ALGBRC(5)+ALGBRC(19)), 1.00000/(ALGBRC(5)+ALGBRC(19))) ALGBRC(38) = 1.00000/(1.00000+EXP(- (STATES(1)+37.0000)/6.80000)) ALGBRC(6) = 1068.00*EXP((STATES(1)+26.3000)/30.0000) ALGBRC(20) = 1068.00*EXP(- (STATES(1)+26.3000)/30.0000) ALGBRC(32) = 1.00000/(ALGBRC(6)+ALGBRC(20)) ALGBRC(39) = 1.00000/(1.00000+EXP((STATES(1)+71.0000)/9.00000)) ALGBRC(7) = TERNRY(CONSTS(1).EQ.1.00000, 15.3000*EXP(- (STATES(1)+71.0000+ 0.700000*CONSTS(111))/83.3000), 15.3000*EXP(- (STATES(1)+71.7000)/83.3000)) ALGBRC(21) = TERNRY(CONSTS(1).EQ.1.00000, 15.0000*EXP((STATES(1)+71.0000)/15.3800), 15.0000*EXP((STATES(1)+71.7000)/15.3800)) ALGBRC(33) = 1.00000/(ALGBRC(7)+ALGBRC(21)) ALGBRC(1) = TERNRY(CONSTS(1).EQ.0.00000, ( 0.0952000*EXP( - 0.0630000*(STATES(1)+34.4000)))/(1.00000+ 1.66000*EXP( - 0.225000*(STATES(1)+63.7000)))+0.0869000, ( 0.0951800*EXP( - 0.0630600*(STATES(1)+34.4000)))/(1.00000+ 1.66200*EXP( - 0.225100*(STATES(1)+63.7000)))+0.0869300) ALGBRC(14) = (1.00000 - ALGBRC(1))*STATES(3)+ ALGBRC(1)*STATES(4) ALGBRC(28) = (( (( CONSTS(118)*STATES(2) ** 3.00000*ALGBRC(14)*CONSTS(15)*CONSTS(6) ** 2.00000)/( CONSTS(4)*CONSTS(5)))*(EXP(( (STATES(1) - CONSTS(112))*CONSTS(6))/( CONSTS(4)*CONSTS(5))) - 1.00000))/(EXP(( STATES(1)*CONSTS(6))/( CONSTS(4)*CONSTS(5))) - 1.00000))*STATES(1) ALGBRC(35) = CONSTS(119)*( STATES(6)*STATES(5)+0.00600000/(1.00000+EXP(- (STATES(1)+14.1000)/6.00000)))*(STATES(1) - CONSTS(22)) ALGBRC(40) = CONSTS(120)*STATES(7)*STATES(8)*(STATES(1) - CONSTS(29)) ALGBRC(41) = CONSTS(121)*STATES(9)*STATES(10)*(STATES(1) - CONSTS(113)) ALGBRC(42) = CONSTS(122)*STATES(10)*(STATES(1) - CONSTS(113)) ALGBRC(43) = 0.600000*STATES(11)+ 0.400000*STATES(12) ALGBRC(44) = CONSTS(123)*ALGBRC(43)*STATES(13)*(STATES(1) - CONSTS(113)) ALGBRC(45) = CONSTS(124)*STATES(14) ** 2.00000*(STATES(1) - CONSTS(115)) ALGBRC(46) = TERNRY(CONSTS(1) .NE. 2.00000, CONSTS(125)*STATES(15)*(STATES(1) - CONSTS(112)), CONSTS(125)*STATES(15)*(STATES(1) - 77.6000)) ALGBRC(47) = TERNRY(CONSTS(1) .NE. 2.00000, CONSTS(126)*STATES(15)*(STATES(1) - CONSTS(113)), CONSTS(126)*STATES(15)*(STATES(1)+102.000)) ALGBRC(48) = CONSTS(127)*(STATES(1) - CONSTS(112)) ALGBRC(50) = CONSTS(129)*(STATES(1) - CONSTS(116)) ALGBRC(49) = CONSTS(128)*(STATES(1) - CONSTS(113)) ALGBRC(51) = TERNRY(CONSTS(1).EQ.0.00000, ( CONSTS(130)*( CONSTS(92) ** 3.00000*CONSTS(94)*EXP( 0.0374300*STATES(1)*CONSTS(91)) - CONSTS(15) ** 3.00000*CONSTS(93)*EXP( 0.0374000*STATES(1)*(CONSTS(91) - 1.00000))))/(1.00000+ CONSTS(90)*( CONSTS(93)*CONSTS(15) ** 3.00000+ CONSTS(94)*CONSTS(92) ** 3.00000)), ( CONSTS(130)*( CONSTS(92) ** 3.00000*CONSTS(94)*EXP( 0.0374300*STATES(1)*CONSTS(91)) - CONSTS(15) ** 3.00000*CONSTS(93)*EXP( 0.0374300*STATES(1)*(CONSTS(91) - 1.00000))))/(1.00000+ CONSTS(90)*( CONSTS(93)*CONSTS(15) ** 3.00000+ CONSTS(94)*CONSTS(92) ** 3.00000))) ALGBRC(52) = ( CONSTS(131)*CONSTS(92)/(CONSTS(95)+CONSTS(92)) ** 3.00000*CONSTS(103)/(CONSTS(96)+CONSTS(103)) ** 2.00000*1.60000)/(1.50000+EXP(- (STATES(1)+60.0000)/40.0000)) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END