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 64 entries in the algebraic variable array.
C There are a total of 27 entries in each of the rate and state variable arrays.
C There are a total of 40 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is V in component membrane (millivolt).
C CONSTS(1) is R in component membrane (joule_per_kilomole_kelvin).
C CONSTS(2) is T in component membrane (kelvin).
C CONSTS(3) is F in component membrane (coulomb_per_mole).
C CONSTS(4) is Cm in component membrane (microF).
C ALGBRC(57) is i_Na in component sodium_current (nanoA).
C ALGBRC(37) is i_Ca_T in component T_type_Ca_channel (nanoA).
C ALGBRC(35) is i_Ca_L in component L_type_Ca_channel (nanoA).
C ALGBRC(60) is i_K in component delayed_rectifying_potassium_current (nanoA).
C ALGBRC(40) is i_f in component hyperpolarisation_activated_current (nanoA).
C ALGBRC(64) is i_B in component linear_background_current (nanoA).
C ALGBRC(41) is i_NaK in component sodium_potassium_pump (nanoA).
C ALGBRC(43) is i_NaCa in component sodium_calcium_pump (nanoA).
C ALGBRC(42) is i_Ca_P in component calcium_pump_current (nanoA).
C CONSTS(5) is P_Na in component sodium_current (mul_per_second).
C ALGBRC(55) is E_Na in component reversal_potentials (millivolt).
C STATES(2) is Na_c in component cleft_space_equations (millimolar).
C STATES(3) is m in component sodium_current_m_gate (dimensionless).
C STATES(4) is h1 in component sodium_current_h_gate (dimensionless).
C STATES(5) is h2 in component sodium_current_h_gate (dimensionless).
C ALGBRC(22) is m_infinity in component sodium_current_m_gate (dimensionless).
C ALGBRC(28) is tau_m in component sodium_current_m_gate (second).
C ALGBRC(1) is alpha_m in component sodium_current_m_gate (per_second).
C ALGBRC(12) is beta_m in component sodium_current_m_gate (per_second).
C ALGBRC(23) is h1_infinity in component sodium_current_h_gate (dimensionless).
C ALGBRC(34) is h2_infinity in component sodium_current_h_gate (dimensionless).
C ALGBRC(29) is tau_h1 in component sodium_current_h_gate (second).
C ALGBRC(36) is tau_h2 in component sodium_current_h_gate (second).
C ALGBRC(2) is alpha_h1 in component sodium_current_h_gate (per_second).
C ALGBRC(13) is beta_h1 in component sodium_current_h_gate (per_second).
C CONSTS(6) is g_Ca_L in component L_type_Ca_channel (microS).
C CONSTS(7) is E_Ca_L in component L_type_Ca_channel (millivolt).
C STATES(6) is d_L in component L_type_Ca_channel_d_gate (dimensionless).
C ALGBRC(33) is d_L_infinity in component L_type_Ca_channel_d_gate (dimensionless).
C STATES(7) is f_L in component L_type_Ca_channel_f_gate (dimensionless).
C ALGBRC(9) is alpha_d_L in component L_type_Ca_channel_d_gate (per_second).
C ALGBRC(20) is beta_d_L in component L_type_Ca_channel_d_gate (per_second).
C ALGBRC(27) is tau_d_L in component L_type_Ca_channel_d_gate (second).
C ALGBRC(3) is alpha_f_L in component L_type_Ca_channel_f_gate (per_second).
C ALGBRC(14) is beta_f_L in component L_type_Ca_channel_f_gate (per_second).
C ALGBRC(30) is f_L_infinity in component L_type_Ca_channel_f_gate (dimensionless).
C ALGBRC(24) is tau_f_L in component L_type_Ca_channel_f_gate (second).
C CONSTS(8) is g_Ca_T in component T_type_Ca_channel (microS).
C CONSTS(9) is E_Ca_T in component T_type_Ca_channel (millivolt).
C STATES(8) is d_T in component T_type_Ca_channel_d_gate (dimensionless).
C STATES(9) is f_T in component T_type_Ca_channel_f_gate (dimensionless).
C ALGBRC(4) is alpha_d_T in component T_type_Ca_channel_d_gate (per_second).
C ALGBRC(15) is beta_d_T in component T_type_Ca_channel_d_gate (per_second).
C ALGBRC(31) is d_T_infinity in component T_type_Ca_channel_d_gate (dimensionless).
C ALGBRC(25) is tau_d_T in component T_type_Ca_channel_d_gate (second).
C ALGBRC(5) is alpha_f_T in component T_type_Ca_channel_f_gate (per_second).
C ALGBRC(16) is beta_f_T in component T_type_Ca_channel_f_gate (per_second).
C ALGBRC(32) is f_T_infinity in component T_type_Ca_channel_f_gate (dimensionless).
C ALGBRC(26) is tau_f_T in component T_type_Ca_channel_f_gate (second).
C CONSTS(35) is g_K in component delayed_rectifying_potassium_current (microS).
C ALGBRC(59) is E_K in component reversal_potentials (millivolt).
C CONSTS(10) is K_b in component cleft_space_equations (millimolar).
C STATES(10) is P_a in component delayed_rectifying_potassium_current_P_a_gate (dimensionless).
C STATES(11) is P_i in component delayed_rectifying_potassium_current_P_i_gate (dimensionless).
C ALGBRC(17) is tau_P_a in component delayed_rectifying_potassium_current_P_a_gate (second).
C ALGBRC(6) is P_a_infinity in component delayed_rectifying_potassium_current_P_a_gate (dimensionless).
C ALGBRC(7) is alpha_P_i in component delayed_rectifying_potassium_current_P_i_gate (per_second).
C ALGBRC(18) is beta_P_i in component delayed_rectifying_potassium_current_P_i_gate (per_second).
C ALGBRC(58) is i_B_Na in component linear_background_current (nanoA).
C ALGBRC(63) is i_B_Ca in component linear_background_current (nanoA).
C ALGBRC(61) is i_B_K in component linear_background_current (nanoA).
C CONSTS(11) is g_B_Na in component linear_background_current (microS).
C CONSTS(12) is g_B_Ca in component linear_background_current (microS).
C CONSTS(13) is g_B_K in component linear_background_current (microS).
C ALGBRC(62) is E_Ca in component reversal_potentials (millivolt).
C ALGBRC(38) is i_f_Na in component hyperpolarisation_activated_current (nanoA).
C ALGBRC(39) is i_f_K in component hyperpolarisation_activated_current (nanoA).
C CONSTS(14) is g_f_Na in component hyperpolarisation_activated_current (microS).
C CONSTS(15) is g_f_K in component hyperpolarisation_activated_current (microS).
C STATES(12) is y in component hyperpolarisation_activated_current_y_gate (dimensionless).
C ALGBRC(8) is y_infinity in component hyperpolarisation_activated_current_y_gate (dimensionless).
C ALGBRC(19) is tau_y in component hyperpolarisation_activated_current_y_gate (second).
C CONSTS(16) is K_m_Na in component sodium_potassium_pump (millimolar).
C CONSTS(17) is K_m_K in component sodium_potassium_pump (millimolar).
C CONSTS(18) is i_NaK_max in component sodium_potassium_pump (nanoA).
C STATES(13) is Na_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C STATES(14) is K_c in component cleft_space_equations (millimolar).
C CONSTS(19) is i_Ca_P_max in component calcium_pump_current (nanoA).
C STATES(15) is Ca_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C CONSTS(20) is K_NaCa in component sodium_calcium_pump (nanoA).
C CONSTS(21) is d_NaCa in component sodium_calcium_pump (dimensionless).
C CONSTS(22) is gamma in component sodium_calcium_pump (dimensionless).
C STATES(16) is Ca_c in component cleft_space_equations (millimolar).
C STATES(17) is K_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C STATES(18) is Ca_Calmod in component intracellular_concentrations_and_buffer_equations (dimensionless).
C STATES(19) is Ca_Trop in component intracellular_concentrations_and_buffer_equations (dimensionless).
C STATES(20) is Ca_Mg_Trop in component intracellular_concentrations_and_buffer_equations (dimensionless).
C STATES(21) is Mg_Mg_Trop in component intracellular_concentrations_and_buffer_equations (dimensionless).
C ALGBRC(44) is phi_C in component intracellular_concentrations_and_buffer_equations (per_second).
C ALGBRC(45) is phi_TC in component intracellular_concentrations_and_buffer_equations (per_second).
C ALGBRC(46) is phi_TMgC in component intracellular_concentrations_and_buffer_equations (per_second).
C ALGBRC(10) is phi_TMgM in component intracellular_concentrations_and_buffer_equations (per_second).
C ALGBRC(50) is phi_B in component intracellular_concentrations_and_buffer_equations (millimolar_per_second).
C CONSTS(23) is Mg_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C ALGBRC(47) is F_C in component intracellular_concentrations_and_buffer_equations (millimolar_per_second).
C ALGBRC(48) is F_TC in component intracellular_concentrations_and_buffer_equations (millimolar_per_second).
C ALGBRC(49) is F_TMgC in component intracellular_concentrations_and_buffer_equations (millimolar_per_second).
C CONSTS(24) is Vol in component cleft_space_equations (microLitre).
C CONSTS(36) is V_i in component intracellular_concentrations_and_buffer_equations (microLitre).
C ALGBRC(53) is i_up in component SR_Ca_uptake_and_release (nanoA).
C ALGBRC(54) is i_rel in component SR_Ca_uptake_and_release (nanoA).
C CONSTS(25) is Na_b in component cleft_space_equations (millimolar).
C CONSTS(26) is Ca_b in component cleft_space_equations (millimolar).
C CONSTS(37) is V_c in component cleft_space_equations (microLitre).
C CONSTS(27) is tau_p in component cleft_space_equations (second).
C ALGBRC(56) is i_tr in component SR_Ca_uptake_and_release (nanoA).
C STATES(22) is Ca_up in component SR_Ca_uptake_and_release (millimolar).
C STATES(23) is Ca_rel in component SR_Ca_uptake_and_release (millimolar).
C CONSTS(28) is alpha_up in component SR_Ca_uptake_and_release (nanoA).
C CONSTS(29) is beta_up in component SR_Ca_uptake_and_release (nanoA).
C CONSTS(30) is alpha_rel in component SR_Ca_uptake_and_release (nanoA_per_millimolar).
C CONSTS(38) is K1 in component SR_Ca_uptake_and_release (dimensionless).
C ALGBRC(52) is K2 in component SR_Ca_uptake_and_release (millimolar).
C CONSTS(31) is k_cyca in component SR_Ca_uptake_and_release (millimolar).
C CONSTS(32) is k_xcs in component SR_Ca_uptake_and_release (dimensionless).
C CONSTS(33) is k_SRCa in component SR_Ca_uptake_and_release (millimolar).
C CONSTS(34) is k_rel in component SR_Ca_uptake_and_release (millimolar).
C ALGBRC(11) is r_act in component SR_Ca_uptake_and_release (per_second).
C ALGBRC(21) is r_inact in component SR_Ca_uptake_and_release (per_second).
C STATES(24) is Ca_Calse in component SR_Ca_uptake_and_release (dimensionless).
C ALGBRC(51) is phi_Calse in component SR_Ca_uptake_and_release (per_second).
C STATES(25) is F1 in component SR_Ca_uptake_and_release (dimensionless).
C STATES(26) is F2 in component SR_Ca_uptake_and_release (dimensionless).
C STATES(27) is F3 in component SR_Ca_uptake_and_release (dimensionless).
C CONSTS(39) is V_up in component SR_Ca_uptake_and_release (microLitre).
C CONSTS(40) is V_rel in component SR_Ca_uptake_and_release (microLitre).
C RATES(1) is d/dt V in component membrane (millivolt).
C RATES(3) is d/dt m in component sodium_current_m_gate (dimensionless).
C RATES(4) is d/dt h1 in component sodium_current_h_gate (dimensionless).
C RATES(5) is d/dt h2 in component sodium_current_h_gate (dimensionless).
C RATES(6) is d/dt d_L in component L_type_Ca_channel_d_gate (dimensionless).
C RATES(7) is d/dt f_L in component L_type_Ca_channel_f_gate (dimensionless).
C RATES(8) is d/dt d_T in component T_type_Ca_channel_d_gate (dimensionless).
C RATES(9) is d/dt f_T in component T_type_Ca_channel_f_gate (dimensionless).
C RATES(10) is d/dt P_a in component delayed_rectifying_potassium_current_P_a_gate (dimensionless).
C RATES(11) is d/dt P_i in component delayed_rectifying_potassium_current_P_i_gate (dimensionless).
C RATES(12) is d/dt y in component hyperpolarisation_activated_current_y_gate (dimensionless).
C RATES(18) is d/dt Ca_Calmod in component intracellular_concentrations_and_buffer_equations (dimensionless).
C RATES(19) is d/dt Ca_Trop in component intracellular_concentrations_and_buffer_equations (dimensionless).
C RATES(20) is d/dt Ca_Mg_Trop in component intracellular_concentrations_and_buffer_equations (dimensionless).
C RATES(21) is d/dt Mg_Mg_Trop in component intracellular_concentrations_and_buffer_equations (dimensionless).
C RATES(13) is d/dt Na_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C RATES(17) is d/dt K_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C RATES(15) is d/dt Ca_i in component intracellular_concentrations_and_buffer_equations (millimolar).
C RATES(2) is d/dt Na_c in component cleft_space_equations (millimolar).
C RATES(14) is d/dt K_c in component cleft_space_equations (millimolar).
C RATES(16) is d/dt Ca_c in component cleft_space_equations (millimolar).
C RATES(24) is d/dt Ca_Calse in component SR_Ca_uptake_and_release (dimensionless).
C RATES(25) is d/dt F1 in component SR_Ca_uptake_and_release (dimensionless).
C RATES(26) is d/dt F2 in component SR_Ca_uptake_and_release (dimensionless).
C RATES(27) is d/dt F3 in component SR_Ca_uptake_and_release (dimensionless).
C RATES(22) is d/dt Ca_up in component SR_Ca_uptake_and_release (millimolar).
C RATES(23) is d/dt Ca_rel in component SR_Ca_uptake_and_release (millimolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = -49.54105
      CONSTS(1) = 8314.472
      CONSTS(2) = 310
      CONSTS(3) = 96485.3415
      CONSTS(4) = 5.5e-5
      CONSTS(5) = 0.00344
      STATES(2) = 139.9988
      STATES(3) = 0.250113
      STATES(4) = 0.001386897
      STATES(5) = 0.002065463
      CONSTS(6) = 0.02115
      CONSTS(7) = 46.4
      STATES(6) = 0.002572773
      STATES(7) = 0.98651
      CONSTS(8) = 0.02521
      CONSTS(9) = 45
      STATES(8) = 0.02012114
      STATES(9) = 0.1945111
      CONSTS(10) = 5.4
      STATES(10) = 0.02302278
      STATES(11) = 0.3777728
      CONSTS(11) = 0.00016
      CONSTS(12) = 0.0000364
      CONSTS(13) = 0.0000694
      CONSTS(14) = 0.0067478
      CONSTS(15) = 0.0128821
      STATES(12) = 0.09227776
      CONSTS(16) = 5.46
      CONSTS(17) = 0.621
      CONSTS(18) = 0.2192
      STATES(13) = 9.701621
      STATES(14) = 5.389014
      CONSTS(19) = 0.02869
      STATES(15) = 3.787018e-4
      CONSTS(20) = 0.00001248
      CONSTS(21) = 0.0001
      CONSTS(22) = 0.5
      STATES(16) = 2.00474
      STATES(17) = 1.407347e2
      STATES(18) = 0.1411678
      STATES(19) = 0.07331396
      STATES(20) = 0.7618549
      STATES(21) = 0.2097049
      CONSTS(23) = 2.5
      CONSTS(24) = 3.497e-6
      CONSTS(25) = 140
      CONSTS(26) = 2
      CONSTS(27) = 0.01
      STATES(22) = 16.95311
      STATES(23) = 16.85024
      CONSTS(28) = 0.08
      CONSTS(29) = 0.072
      CONSTS(30) = 0.5
      CONSTS(31) = 0.00005
      CONSTS(32) = 0.9
      CONSTS(33) = 22
      CONSTS(34) = 0.004
      STATES(24) = 0.9528726
      STATES(25) = 0.1133251
      STATES(26) = 0.0007594214
      STATES(27) = 0.8859153
      CONSTS(35) =  0.00693000*CONSTS(10)/1.00000 ** 0.590000
      CONSTS(36) =  0.465000*CONSTS(24)
      CONSTS(37) =  0.136000*CONSTS(24)
      CONSTS(38) = ( CONSTS(31)*CONSTS(32))/CONSTS(33)
      CONSTS(39) =  0.0116600*CONSTS(36)
      CONSTS(40) =  0.00129600*CONSTS(36)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(10) =  1290.00*CONSTS(23)*(1.00000 - (STATES(20)+STATES(21))) -  429.000*STATES(21)
      RATES(21) = ALGBRC(10)
      ALGBRC(11) =  240.000*EXP( (STATES(1) - 40.0000)*0.0800000)+ 240.000*STATES(15)/(STATES(15)+CONSTS(34)) ** 4.00000
      RATES(25) =  0.960000*STATES(27) -  ALGBRC(11)*STATES(25)
      ALGBRC(17) = 1.00000/( 17.0000*EXP( 0.0398000*STATES(1))+ 2.11000*EXP( - 0.0510000*STATES(1)))
      ALGBRC(6) = 1.00000/(1.00000+EXP((STATES(1)+5.10000)/- 7.40000))
      RATES(10) = (ALGBRC(6) - STATES(10))/ALGBRC(17)
      ALGBRC(7) =  100.000*EXP( - 0.0183000*STATES(1))
      ALGBRC(18) =  656.000*EXP( 0.00942000*STATES(1))
      RATES(11) =  ALGBRC(7)*(1.00000 - STATES(11)) -  ALGBRC(18)*STATES(11)
      ALGBRC(8) = 1.00000/(1.00000+EXP((STATES(1)+72.2000)/9.00000))
      ALGBRC(19) = 1.00000/( 1.64830*EXP((STATES(1)+54.0600)/- 24.3300)+14.0106/(0.700000+EXP((STATES(1)+60.0000)/- 5.50000)))
      RATES(12) = (ALGBRC(8) - STATES(12))/ALGBRC(19)
      ALGBRC(21) = 40.0000+ 240.000*STATES(15)/(STATES(15)+CONSTS(34)) ** 4.00000
      RATES(26) =  ALGBRC(11)*STATES(25) -  ALGBRC(21)*STATES(26)
      RATES(27) =  ALGBRC(21)*STATES(26) -  0.960000*STATES(27)
      ALGBRC(1) = ( - 824.000*(STATES(1)+51.9000))/(EXP((STATES(1)+51.9000)/- 8.90000) - 1.00000)
      ALGBRC(12) =  32960.0*EXP((STATES(1)+51.9000)/- 8.90000)
      ALGBRC(22) = ALGBRC(1)/(ALGBRC(1)+ALGBRC(12))
      ALGBRC(28) = 1.00000/(ALGBRC(1)+ALGBRC(12))+1.50000e-05
      RATES(3) = (ALGBRC(22) - STATES(3))/ALGBRC(28)
      ALGBRC(2) =  165.000*EXP((STATES(1)+101.300)/- 12.6000)
      ALGBRC(13) = 12360.0/( 320.000*EXP((STATES(1)+101.300)/- 12.6000)+1.00000)
      ALGBRC(23) = ALGBRC(2)/(ALGBRC(2)+ALGBRC(13))
      ALGBRC(29) = 1.00000/(ALGBRC(2)+ALGBRC(13))
      RATES(4) = (ALGBRC(23) - STATES(4))/ALGBRC(29)
      ALGBRC(33) = 1.00000/(1.00000+EXP((STATES(1)+14.1000)/- 6.00000))
      ALGBRC(9) = ( - 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)
      ALGBRC(20) = ( 11.4300*(STATES(1) - 5.00000))/(EXP( 0.400000*(STATES(1) - 5.00000)) - 1.00000)
      ALGBRC(27) = 1.00000/(ALGBRC(9)+ALGBRC(20))
      RATES(6) = (ALGBRC(33) - STATES(6))/ALGBRC(27)
      ALGBRC(30) = 1.00000/(1.00000+EXP((STATES(1)+30.0000)/5.00000))
      ALGBRC(3) = ( 3.75000*(STATES(1)+28.0000))/(EXP((STATES(1)+28.0000)/4.00000) - 1.00000)
      ALGBRC(14) = 30.0000/(1.00000+EXP((STATES(1)+28.0000)/- 4.00000))
      ALGBRC(24) = 1.00000/(ALGBRC(3)+ALGBRC(14))
      RATES(7) = (ALGBRC(30) - STATES(7))/ALGBRC(24)
      ALGBRC(31) = 1.00000/(1.00000+EXP((STATES(1)+26.3000)/- 6.00000))
      ALGBRC(4) =  1068.00*EXP((STATES(1)+26.3000)/30.0000)
      ALGBRC(15) =  1068.00*EXP((STATES(1)+26.3000)/- 30.0000)
      ALGBRC(25) = 1.00000/(ALGBRC(4)+ALGBRC(15))
      RATES(8) = (ALGBRC(31) - STATES(8))/ALGBRC(25)
      ALGBRC(32) = 1.00000/(1.00000+EXP((STATES(1)+61.7000)/5.60000))
      ALGBRC(5) =  15.3000*EXP((STATES(1)+61.7000)/- 83.3000)
      ALGBRC(16) =  15.0000*EXP((STATES(1)+61.7000)/15.3800)
      ALGBRC(26) = 1.00000/(ALGBRC(5)+ALGBRC(16))
      RATES(9) = (ALGBRC(32) - STATES(9))/ALGBRC(26)
      ALGBRC(34) = ALGBRC(23)
      ALGBRC(36) =  20.0000*ALGBRC(29)
      RATES(5) = (ALGBRC(34) - STATES(5))/ALGBRC(36)
      ALGBRC(44) =  129000.*STATES(15)*(1.00000 - STATES(18)) -  307.000*STATES(18)
      RATES(18) = ALGBRC(44)
      ALGBRC(45) =  50500.0*STATES(15)*(1.00000 - STATES(19)) -  252.000*STATES(19)
      RATES(19) = ALGBRC(45)
      ALGBRC(46) =  129000.*STATES(15)*(1.00000 - (STATES(20)+STATES(21))) -  4.25000*STATES(20)
      RATES(20) = ALGBRC(46)
      ALGBRC(51) =  770.000*STATES(23)*(1.00000 - STATES(24)) -  641.000*STATES(24)
      RATES(24) = ALGBRC(51)
      ALGBRC(52) = STATES(15)+ STATES(22)*CONSTS(38)+ CONSTS(31)*CONSTS(32)+CONSTS(31)
      ALGBRC(53) = ( CONSTS(28)*STATES(15) -  CONSTS(29)*STATES(22)*CONSTS(38))/ALGBRC(52)
      ALGBRC(56) = ( (STATES(22) - STATES(23))*2.00000*CONSTS(3)*CONSTS(39))/0.0641800
      RATES(22) = (ALGBRC(53) - ALGBRC(56))/( 2.00000*CONSTS(39)*CONSTS(3))
      ALGBRC(54) =  CONSTS(30)*STATES(26)/(STATES(26)+0.250000) ** 2.00000*STATES(23)
      RATES(23) = (ALGBRC(56) - ALGBRC(54))/( 2.00000*CONSTS(40)*CONSTS(3)) -  11.4800*ALGBRC(51)
      ALGBRC(55) =  (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(STATES(2)/STATES(13))
      ALGBRC(57) = ( (( CONSTS(5)*STATES(3) ** 3.00000*STATES(4)*STATES(5)*STATES(2)*STATES(1)*CONSTS(3) ** 2.00000)/( CONSTS(1)*CONSTS(2)))*(EXP(( (STATES(1) - ALGBRC(55))*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - 1.00000))/(EXP(( STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - 1.00000)
      ALGBRC(41) = ( CONSTS(18)*STATES(13)/(CONSTS(16)+STATES(13)) ** 3.00000*STATES(14)/(CONSTS(17)+STATES(14)) ** 2.00000*1.60000)/(1.50000+EXP((STATES(1)+60.0000)/- 40.0000))
      ALGBRC(43) = ( CONSTS(20)*( STATES(13) ** 3.00000*STATES(16)*EXP( 0.0374300*STATES(1)*CONSTS(22)) -  STATES(2) ** 3.00000*STATES(15)*EXP( 0.0374300*STATES(1)*(CONSTS(22) - 1.00000))))/(1.00000+ CONSTS(21)*( STATES(15)*STATES(2) ** 3.00000+ STATES(16)*STATES(13) ** 3.00000))
      ALGBRC(58) =  CONSTS(11)*(STATES(1) - ALGBRC(55))
      ALGBRC(38) =  CONSTS(14)*STATES(12) ** 2.00000*(STATES(1) - 75.0000)
      RATES(13) = - ( 3.00000*ALGBRC(41)+ 3.00000*ALGBRC(43)+ALGBRC(58)+ALGBRC(38)+ALGBRC(57))/( CONSTS(3)*CONSTS(36))
      RATES(2) = (CONSTS(25) - STATES(2))/CONSTS(27)+(ALGBRC(57)+ 3.00000*ALGBRC(43)+ 3.00000*ALGBRC(41)+ALGBRC(58)+ALGBRC(38))/( CONSTS(3)*CONSTS(37))
      ALGBRC(59) =  (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(STATES(14)/STATES(17))
      ALGBRC(60) =  CONSTS(35)*STATES(10)*STATES(11)*(STATES(1) - ALGBRC(59))
      ALGBRC(61) =  CONSTS(13)*(STATES(1) - ALGBRC(59))
      ALGBRC(39) =  CONSTS(15)*STATES(12) ** 2.00000*(STATES(1)+85.0000)
      RATES(17) = ( 2.00000*ALGBRC(41) - (ALGBRC(60)+ALGBRC(39)+ALGBRC(61)))/( CONSTS(3)*CONSTS(36))
      RATES(14) = (CONSTS(10) - STATES(14))/CONSTS(27)+( - 2.00000*ALGBRC(41)+ALGBRC(60)+ALGBRC(61)+ALGBRC(39))/( CONSTS(3)*CONSTS(37))
      ALGBRC(37) =  CONSTS(8)*STATES(8)*STATES(9)*(STATES(1) - CONSTS(9))
      ALGBRC(35) =  CONSTS(6)*( STATES(7)*STATES(6)+ 0.0950000*ALGBRC(33))*(STATES(1) - CONSTS(7))
      ALGBRC(42) = ( CONSTS(19)*STATES(15))/(STATES(15)+0.000400000)
      ALGBRC(62) =  (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(STATES(16)/STATES(15))
      ALGBRC(63) =  CONSTS(12)*(STATES(1) - ALGBRC(62))
      ALGBRC(47) =  0.0900000*ALGBRC(44)
      ALGBRC(48) =  0.0310000*ALGBRC(45)
      ALGBRC(49) =  0.0620000*ALGBRC(46)
      ALGBRC(50) = ALGBRC(47)+ALGBRC(48)+ALGBRC(49)
      RATES(15) = (( 2.00000*ALGBRC(43)+ALGBRC(54)) - (ALGBRC(35)+ALGBRC(37)+ALGBRC(42)+ALGBRC(63)+ALGBRC(53)))/( 2.00000*CONSTS(36)*CONSTS(3)) - ALGBRC(50)
      RATES(16) = (CONSTS(26) - STATES(16))/CONSTS(27)+( - 2.00000*ALGBRC(43)+ALGBRC(35)+ALGBRC(37)+ALGBRC(42)+ALGBRC(63))/( 2.00000*CONSTS(3)*CONSTS(37))
      ALGBRC(40) = ALGBRC(38)+ALGBRC(39)
      ALGBRC(64) = ALGBRC(58)+ALGBRC(63)+ALGBRC(61)
      RATES(1) = - (ALGBRC(57)+ALGBRC(37)+ALGBRC(35)+ALGBRC(60)+ALGBRC(40)+ALGBRC(64)+ALGBRC(41)+ALGBRC(43)+ALGBRC(42))/CONSTS(4)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(10) =  1290.00*CONSTS(23)*(1.00000 - (STATES(20)+STATES(21))) -  429.000*STATES(21)
      ALGBRC(11) =  240.000*EXP( (STATES(1) - 40.0000)*0.0800000)+ 240.000*STATES(15)/(STATES(15)+CONSTS(34)) ** 4.00000
      ALGBRC(17) = 1.00000/( 17.0000*EXP( 0.0398000*STATES(1))+ 2.11000*EXP( - 0.0510000*STATES(1)))
      ALGBRC(6) = 1.00000/(1.00000+EXP((STATES(1)+5.10000)/- 7.40000))
      ALGBRC(7) =  100.000*EXP( - 0.0183000*STATES(1))
      ALGBRC(18) =  656.000*EXP( 0.00942000*STATES(1))
      ALGBRC(8) = 1.00000/(1.00000+EXP((STATES(1)+72.2000)/9.00000))
      ALGBRC(19) = 1.00000/( 1.64830*EXP((STATES(1)+54.0600)/- 24.3300)+14.0106/(0.700000+EXP((STATES(1)+60.0000)/- 5.50000)))
      ALGBRC(21) = 40.0000+ 240.000*STATES(15)/(STATES(15)+CONSTS(34)) ** 4.00000
      ALGBRC(1) = ( - 824.000*(STATES(1)+51.9000))/(EXP((STATES(1)+51.9000)/- 8.90000) - 1.00000)
      ALGBRC(12) =  32960.0*EXP((STATES(1)+51.9000)/- 8.90000)
      ALGBRC(22) = ALGBRC(1)/(ALGBRC(1)+ALGBRC(12))
      ALGBRC(28) = 1.00000/(ALGBRC(1)+ALGBRC(12))+1.50000e-05
      ALGBRC(2) =  165.000*EXP((STATES(1)+101.300)/- 12.6000)
      ALGBRC(13) = 12360.0/( 320.000*EXP((STATES(1)+101.300)/- 12.6000)+1.00000)
      ALGBRC(23) = ALGBRC(2)/(ALGBRC(2)+ALGBRC(13))
      ALGBRC(29) = 1.00000/(ALGBRC(2)+ALGBRC(13))
      ALGBRC(33) = 1.00000/(1.00000+EXP((STATES(1)+14.1000)/- 6.00000))
      ALGBRC(9) = ( - 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)
      ALGBRC(20) = ( 11.4300*(STATES(1) - 5.00000))/(EXP( 0.400000*(STATES(1) - 5.00000)) - 1.00000)
      ALGBRC(27) = 1.00000/(ALGBRC(9)+ALGBRC(20))
      ALGBRC(30) = 1.00000/(1.00000+EXP((STATES(1)+30.0000)/5.00000))
      ALGBRC(3) = ( 3.75000*(STATES(1)+28.0000))/(EXP((STATES(1)+28.0000)/4.00000) - 1.00000)
      ALGBRC(14) = 30.0000/(1.00000+EXP((STATES(1)+28.0000)/- 4.00000))
      ALGBRC(24) = 1.00000/(ALGBRC(3)+ALGBRC(14))
      ALGBRC(31) = 1.00000/(1.00000+EXP((STATES(1)+26.3000)/- 6.00000))
      ALGBRC(4) =  1068.00*EXP((STATES(1)+26.3000)/30.0000)
      ALGBRC(15) =  1068.00*EXP((STATES(1)+26.3000)/- 30.0000)
      ALGBRC(25) = 1.00000/(ALGBRC(4)+ALGBRC(15))
      ALGBRC(32) = 1.00000/(1.00000+EXP((STATES(1)+61.7000)/5.60000))
      ALGBRC(5) =  15.3000*EXP((STATES(1)+61.7000)/- 83.3000)
      ALGBRC(16) =  15.0000*EXP((STATES(1)+61.7000)/15.3800)
      ALGBRC(26) = 1.00000/(ALGBRC(5)+ALGBRC(16))
      ALGBRC(34) = ALGBRC(23)
      ALGBRC(36) =  20.0000*ALGBRC(29)
      ALGBRC(44) =  129000.*STATES(15)*(1.00000 - STATES(18)) -  307.000*STATES(18)
      ALGBRC(45) =  50500.0*STATES(15)*(1.00000 - STATES(19)) -  252.000*STATES(19)
      ALGBRC(46) =  129000.*STATES(15)*(1.00000 - (STATES(20)+STATES(21))) -  4.25000*STATES(20)
      ALGBRC(51) =  770.000*STATES(23)*(1.00000 - STATES(24)) -  641.000*STATES(24)
      ALGBRC(52) = STATES(15)+ STATES(22)*CONSTS(38)+ CONSTS(31)*CONSTS(32)+CONSTS(31)
      ALGBRC(53) = ( CONSTS(28)*STATES(15) -  CONSTS(29)*STATES(22)*CONSTS(38))/ALGBRC(52)
      ALGBRC(56) = ( (STATES(22) - STATES(23))*2.00000*CONSTS(3)*CONSTS(39))/0.0641800
      ALGBRC(54) =  CONSTS(30)*STATES(26)/(STATES(26)+0.250000) ** 2.00000*STATES(23)
      ALGBRC(55) =  (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(STATES(2)/STATES(13))
      ALGBRC(57) = ( (( CONSTS(5)*STATES(3) ** 3.00000*STATES(4)*STATES(5)*STATES(2)*STATES(1)*CONSTS(3) ** 2.00000)/( CONSTS(1)*CONSTS(2)))*(EXP(( (STATES(1) - ALGBRC(55))*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - 1.00000))/(EXP(( STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - 1.00000)
      ALGBRC(41) = ( CONSTS(18)*STATES(13)/(CONSTS(16)+STATES(13)) ** 3.00000*STATES(14)/(CONSTS(17)+STATES(14)) ** 2.00000*1.60000)/(1.50000+EXP((STATES(1)+60.0000)/- 40.0000))
      ALGBRC(43) = ( CONSTS(20)*( STATES(13) ** 3.00000*STATES(16)*EXP( 0.0374300*STATES(1)*CONSTS(22)) -  STATES(2) ** 3.00000*STATES(15)*EXP( 0.0374300*STATES(1)*(CONSTS(22) - 1.00000))))/(1.00000+ CONSTS(21)*( STATES(15)*STATES(2) ** 3.00000+ STATES(16)*STATES(13) ** 3.00000))
      ALGBRC(58) =  CONSTS(11)*(STATES(1) - ALGBRC(55))
      ALGBRC(38) =  CONSTS(14)*STATES(12) ** 2.00000*(STATES(1) - 75.0000)
      ALGBRC(59) =  (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(STATES(14)/STATES(17))
      ALGBRC(60) =  CONSTS(35)*STATES(10)*STATES(11)*(STATES(1) - ALGBRC(59))
      ALGBRC(61) =  CONSTS(13)*(STATES(1) - ALGBRC(59))
      ALGBRC(39) =  CONSTS(15)*STATES(12) ** 2.00000*(STATES(1)+85.0000)
      ALGBRC(37) =  CONSTS(8)*STATES(8)*STATES(9)*(STATES(1) - CONSTS(9))
      ALGBRC(35) =  CONSTS(6)*( STATES(7)*STATES(6)+ 0.0950000*ALGBRC(33))*(STATES(1) - CONSTS(7))
      ALGBRC(42) = ( CONSTS(19)*STATES(15))/(STATES(15)+0.000400000)
      ALGBRC(62) =  (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(STATES(16)/STATES(15))
      ALGBRC(63) =  CONSTS(12)*(STATES(1) - ALGBRC(62))
      ALGBRC(47) =  0.0900000*ALGBRC(44)
      ALGBRC(48) =  0.0310000*ALGBRC(45)
      ALGBRC(49) =  0.0620000*ALGBRC(46)
      ALGBRC(50) = ALGBRC(47)+ALGBRC(48)+ALGBRC(49)
      ALGBRC(40) = ALGBRC(38)+ALGBRC(39)
      ALGBRC(64) = ALGBRC(58)+ALGBRC(63)+ALGBRC(61)
      RETURN
      END