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 93 entries in the algebraic variable array.
C There are a total of 24 entries in each of the rate and state variable arrays.
C There are a total of 44 entries in the constant variable array.
C
C
C VOI is t in component environment (second).
C CONSTS(1) is R in component environment (J_per_K_per_mol).
C CONSTS(2) is T in component environment (kelvin).
C CONSTS(3) is F in component environment (C_per_mol).
C CONSTS(4) is C_m in component environment (fF).
C STATES(1) is q_K_o in component environment (fmol).
C STATES(2) is q_K_i in component environment (fmol).
C STATES(3) is q_Na_o in component environment (fmol).
C STATES(4) is q_Na_i in component environment (fmol).
C STATES(5) is q_H_i in component environment (fmol).
C STATES(6) is q_MgADP in component environment (fmol).
C STATES(7) is q_MgATP in component environment (fmol).
C STATES(8) is q_Pi in component environment (fmol).
C STATES(9) is q_P7 in component environment (fmol).
C STATES(10) is q_P14 in component environment (fmol).
C STATES(11) is q_P15 in component environment (fmol).
C STATES(12) is q_P1 in component environment (fmol).
C STATES(13) is q_P2 in component environment (fmol).
C STATES(14) is q_P3 in component environment (fmol).
C STATES(15) is q_P4 in component environment (fmol).
C STATES(16) is q_P5 in component environment (fmol).
C STATES(17) is q_P6 in component environment (fmol).
C STATES(18) is q_P10 in component environment (fmol).
C STATES(19) is q_P11 in component environment (fmol).
C STATES(20) is q_P12 in component environment (fmol).
C STATES(21) is q_P13 in component environment (fmol).
C STATES(22) is q_P8 in component environment (fmol).
C STATES(23) is q_P9 in component environment (fmol).
C ALGBRC(55) is v_K_o_NaK in component NaK (fmol_per_sec).
C ALGBRC(48) is v_K_i_NaK in component NaK (fmol_per_sec).
C ALGBRC(91) is v_Na_o_NaK in component NaK (fmol_per_sec).
C ALGBRC(70) is v_Na_i_NaK in component NaK (fmol_per_sec).
C ALGBRC(62) is v_H_NaK in component NaK (fmol_per_sec).
C ALGBRC(78) is v_MgADP_NaK in component NaK (fmol_per_sec).
C ALGBRC(71) is v_MgATP_NaK in component NaK (fmol_per_sec).
C ALGBRC(63) is v_Pi_NaK in component NaK (fmol_per_sec).
C STATES(24) is q_mem in component environment (fC).
C ALGBRC(87) is I_mem_NaK in component NaK (fA).
C CONSTS(5) is kappa_1_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(6) is kappa_2_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(7) is kappa_3_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(8) is kappa_4_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(9) is kappa_5_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(10) is kappa_6_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(11) is kappa_7_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(12) is kappa_8_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(13) is kappa_9_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(14) is kappa_10_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(15) is kappa_11_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(16) is kappa_12_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(17) is kappa_13_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(18) is kappa_14_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(19) is kappa_15_NaK in component NaK_parameters (fmol_per_sec).
C CONSTS(20) is K_1_NaK in component NaK_parameters (per_fmol).
C CONSTS(21) is K_2_NaK in component NaK_parameters (per_fmol).
C CONSTS(22) is K_3_NaK in component NaK_parameters (per_fmol).
C CONSTS(23) is K_4_NaK in component NaK_parameters (per_fmol).
C CONSTS(24) is K_5_NaK in component NaK_parameters (per_fmol).
C CONSTS(25) is K_6_NaK in component NaK_parameters (per_fmol).
C CONSTS(26) is K_7_NaK in component NaK_parameters (per_fmol).
C CONSTS(27) is K_8_NaK in component NaK_parameters (per_fmol).
C CONSTS(28) is K_9_NaK in component NaK_parameters (per_fmol).
C CONSTS(29) is K_10_NaK in component NaK_parameters (per_fmol).
C CONSTS(30) is K_11_NaK in component NaK_parameters (per_fmol).
C CONSTS(31) is K_12_NaK in component NaK_parameters (per_fmol).
C CONSTS(32) is K_13_NaK in component NaK_parameters (per_fmol).
C CONSTS(33) is K_14_NaK in component NaK_parameters (per_fmol).
C CONSTS(34) is K_15_NaK in component NaK_parameters (per_fmol).
C CONSTS(35) is K_K_i in component NaK_parameters (per_fmol).
C CONSTS(36) is K_K_o in component NaK_parameters (per_fmol).
C CONSTS(37) is K_Na_i in component NaK_parameters (per_fmol).
C CONSTS(38) is K_Na_o in component NaK_parameters (per_fmol).
C CONSTS(39) is K_MgATP in component NaK_parameters (per_fmol).
C CONSTS(40) is K_MgADP in component NaK_parameters (per_fmol).
C CONSTS(41) is K_Pi in component NaK_parameters (per_fmol).
C CONSTS(42) is K_H in component NaK_parameters (per_fmol).
C CONSTS(43) is zF_5 in component NaK_parameters (C_per_mol).
C CONSTS(44) is zF_8 in component NaK_parameters (C_per_mol).
C ALGBRC(3) is mu_K_o in component NaK (J_per_mol).
C ALGBRC(4) is mu_K_i in component NaK (J_per_mol).
C ALGBRC(7) is mu_Na_o in component NaK (J_per_mol).
C ALGBRC(8) is mu_Na_i in component NaK (J_per_mol).
C ALGBRC(2) is mu_H in component NaK (J_per_mol).
C ALGBRC(5) is mu_MgADP in component NaK (J_per_mol).
C ALGBRC(6) is mu_MgATP in component NaK (J_per_mol).
C ALGBRC(21) is mu_P7 in component NaK (J_per_mol).
C ALGBRC(24) is mu_Pi in component NaK (J_per_mol).
C ALGBRC(14) is mu_P14 in component NaK (J_per_mol).
C ALGBRC(15) is mu_P15 in component NaK (J_per_mol).
C ALGBRC(9) is mu_P1 in component NaK (J_per_mol).
C ALGBRC(16) is mu_P2 in component NaK (J_per_mol).
C ALGBRC(17) is mu_P3 in component NaK (J_per_mol).
C ALGBRC(18) is mu_P4 in component NaK (J_per_mol).
C ALGBRC(19) is mu_P5 in component NaK (J_per_mol).
C ALGBRC(20) is mu_P6 in component NaK (J_per_mol).
C ALGBRC(10) is mu_P10 in component NaK (J_per_mol).
C ALGBRC(11) is mu_P11 in component NaK (J_per_mol).
C ALGBRC(12) is mu_P12 in component NaK (J_per_mol).
C ALGBRC(13) is mu_P13 in component NaK (J_per_mol).
C ALGBRC(22) is mu_P8 in component NaK (J_per_mol).
C ALGBRC(23) is mu_P9 in component NaK (J_per_mol).
C ALGBRC(72) is v_P14 in component NaK (fmol_per_sec).
C ALGBRC(80) is v_P15 in component NaK (fmol_per_sec).
C ALGBRC(81) is v_P1 in component NaK (fmol_per_sec).
C ALGBRC(50) is v_P2 in component NaK (fmol_per_sec).
C ALGBRC(57) is v_P3 in component NaK (fmol_per_sec).
C ALGBRC(64) is v_P4 in component NaK (fmol_per_sec).
C ALGBRC(73) is v_P5 in component NaK (fmol_per_sec).
C ALGBRC(82) is v_P6 in component NaK (fmol_per_sec).
C ALGBRC(92) is v_P10 in component NaK (fmol_per_sec).
C ALGBRC(51) is v_P11 in component NaK (fmol_per_sec).
C ALGBRC(58) is v_P12 in component NaK (fmol_per_sec).
C ALGBRC(65) is v_P13 in component NaK (fmol_per_sec).
C ALGBRC(85) is v_P7 in component NaK (fmol_per_sec).
C ALGBRC(88) is v_P8 in component NaK (fmol_per_sec).
C ALGBRC(93) is v_P9 in component NaK (fmol_per_sec).
C ALGBRC(25) is Af_R1 in component NaK (J_per_mol).
C ALGBRC(40) is Ar_R1 in component NaK (J_per_mol).
C ALGBRC(41) is v_R1 in component NaK (fmol_per_sec).
C ALGBRC(26) is Af_R10 in component NaK (J_per_mol).
C ALGBRC(42) is Ar_R10 in component NaK (J_per_mol).
C ALGBRC(43) is v_R10 in component NaK (fmol_per_sec).
C ALGBRC(27) is Af_R11 in component NaK (J_per_mol).
C ALGBRC(45) is Ar_R11 in component NaK (J_per_mol).
C ALGBRC(47) is v_R11 in component NaK (fmol_per_sec).
C ALGBRC(28) is Af_R12 in component NaK (J_per_mol).
C ALGBRC(52) is Ar_R12 in component NaK (J_per_mol).
C ALGBRC(54) is v_R12 in component NaK (fmol_per_sec).
C ALGBRC(29) is Af_R13 in component NaK (J_per_mol).
C ALGBRC(59) is Ar_R13 in component NaK (J_per_mol).
C ALGBRC(60) is v_R13 in component NaK (fmol_per_sec).
C ALGBRC(30) is Af_R14 in component NaK (J_per_mol).
C ALGBRC(66) is Ar_R14 in component NaK (J_per_mol).
C ALGBRC(68) is v_R14 in component NaK (fmol_per_sec).
C ALGBRC(31) is Af_R15 in component NaK (J_per_mol).
C ALGBRC(74) is Ar_R15 in component NaK (J_per_mol).
C ALGBRC(76) is v_R15 in component NaK (fmol_per_sec).
C ALGBRC(32) is Af_R2 in component NaK (J_per_mol).
C ALGBRC(44) is Ar_R2 in component NaK (J_per_mol).
C ALGBRC(46) is v_R2 in component NaK (fmol_per_sec).
C ALGBRC(33) is Af_R3 in component NaK (J_per_mol).
C ALGBRC(49) is Ar_R3 in component NaK (J_per_mol).
C ALGBRC(53) is v_R3 in component NaK (fmol_per_sec).
C ALGBRC(34) is Af_R4 in component NaK (J_per_mol).
C ALGBRC(56) is Ar_R4 in component NaK (J_per_mol).
C ALGBRC(61) is v_R4 in component NaK (fmol_per_sec).
C ALGBRC(35) is Af_R5 in component NaK (J_per_mol).
C ALGBRC(67) is Ar_R5 in component NaK (J_per_mol).
C ALGBRC(69) is v_R5 in component NaK (fmol_per_sec).
C ALGBRC(36) is Af_R6 in component NaK (J_per_mol).
C ALGBRC(75) is Ar_R6 in component NaK (J_per_mol).
C ALGBRC(77) is v_R6 in component NaK (fmol_per_sec).
C ALGBRC(37) is Af_R7 in component NaK (J_per_mol).
C ALGBRC(79) is Ar_R7 in component NaK (J_per_mol).
C ALGBRC(83) is v_R7 in component NaK (fmol_per_sec).
C ALGBRC(38) is Af_R8 in component NaK (J_per_mol).
C ALGBRC(84) is Ar_R8 in component NaK (J_per_mol).
C ALGBRC(86) is v_R8 in component NaK (fmol_per_sec).
C ALGBRC(39) is Af_R9 in component NaK (J_per_mol).
C ALGBRC(89) is Ar_R9 in component NaK (J_per_mol).
C ALGBRC(90) is v_R9 in component NaK (fmol_per_sec).
C ALGBRC(1) is V_mem in component NaK (volt).
C RATES(1) is d/dt q_K_o in component environment (fmol).
C RATES(2) is d/dt q_K_i in component environment (fmol).
C RATES(3) is d/dt q_Na_o in component environment (fmol).
C RATES(4) is d/dt q_Na_i in component environment (fmol).
C RATES(5) is d/dt q_H_i in component environment (fmol).
C RATES(6) is d/dt q_MgADP in component environment (fmol).
C RATES(7) is d/dt q_MgATP in component environment (fmol).
C RATES(8) is d/dt q_Pi in component environment (fmol).
C RATES(24) is d/dt q_mem in component environment (fC).
C RATES(9) is d/dt q_P7 in component environment (fmol).
C RATES(10) is d/dt q_P14 in component environment (fmol).
C RATES(11) is d/dt q_P15 in component environment (fmol).
C RATES(12) is d/dt q_P1 in component environment (fmol).
C RATES(13) is d/dt q_P2 in component environment (fmol).
C RATES(14) is d/dt q_P3 in component environment (fmol).
C RATES(15) is d/dt q_P4 in component environment (fmol).
C RATES(16) is d/dt q_P5 in component environment (fmol).
C RATES(17) is d/dt q_P6 in component environment (fmol).
C RATES(18) is d/dt q_P10 in component environment (fmol).
C RATES(19) is d/dt q_P11 in component environment (fmol).
C RATES(20) is d/dt q_P12 in component environment (fmol).
C RATES(21) is d/dt q_P13 in component environment (fmol).
C RATES(22) is d/dt q_P8 in component environment (fmol).
C RATES(23) is d/dt q_P9 in component environment (fmol).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 8.314
      CONSTS(2) = 310
      CONSTS(3) = 96485
      CONSTS(4) = 153400
      STATES(1) = 27.9828
      STATES(2) = 5510
      STATES(3) = 725.48
      STATES(4) = 380
      STATES(5) = 0.0030534
      STATES(6) = 1.33
      STATES(7) = 264.1
      STATES(8) = 15.0898
      STATES(9) = 0.001126432
      STATES(10) = 0.001126432
      STATES(11) = 0.001126432
      STATES(12) = 0.001126432
      STATES(13) = 0.001126432
      STATES(14) = 0.001126432
      STATES(15) = 0.001126432
      STATES(16) = 0.001126432
      STATES(17) = 0.001126432
      STATES(18) = 0.001126432
      STATES(19) = 0.001126432
      STATES(20) = 0.001126432
      STATES(21) = 0.001126432
      STATES(22) = 0.001126432
      STATES(23) = 0.001126432
      STATES(24) = -13039
      CONSTS(5) = 28701.2
      CONSTS(6) = 1.02749e+06
      CONSTS(7) = 36989.9
      CONSTS(8) = 110769
      CONSTS(9) = 143.043
      CONSTS(10) = 0.203578
      CONSTS(11) = 73.4728
      CONSTS(12) = 70.4896
      CONSTS(13) = 19895.6
      CONSTS(14) = 1.40388e+06
      CONSTS(15) = 7905.94
      CONSTS(16) = 6193.15
      CONSTS(17) = 0.55667
      CONSTS(18) = 6163.37
      CONSTS(19) = 1.34489
      CONSTS(20) = 1.17033e+06
      CONSTS(21) = 8172.83
      CONSTS(22) = 228.295
      CONSTS(23) = 76.2363
      CONSTS(24) = 101.833
      CONSTS(25) = 6990.92
      CONSTS(26) = 157.403
      CONSTS(27) = 494.813
      CONSTS(28) = 1.06726e+06
      CONSTS(29) = 3781.29
      CONSTS(30) = 53.588
      CONSTS(31) = 68.4084
      CONSTS(32) = 349.31
      CONSTS(33) = 105.854
      CONSTS(34) = 22775
      CONSTS(35) = 0.000123928
      CONSTS(36) = 0.455493
      CONSTS(37) = 0.00344241
      CONSTS(38) = 0.00256511
      CONSTS(39) = 0.0445571
      CONSTS(40) = 0.204939
      CONSTS(41) = 2.00757
      CONSTS(42) = 2.00757
      CONSTS(43) = -5301.979
      CONSTS(44) = -91183.021
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(9) =  CONSTS(1)*CONSTS(2)*log( CONSTS(20)*STATES(12))
      ALGBRC(25) = ALGBRC(9)
      ALGBRC(4) =  CONSTS(1)*CONSTS(2)*log( CONSTS(35)*STATES(2))
      ALGBRC(16) =  CONSTS(1)*CONSTS(2)*log( CONSTS(21)*STATES(13))
      ALGBRC(40) = ALGBRC(4)+ALGBRC(16)
      ALGBRC(41) =  CONSTS(5)*(EXP(ALGBRC(25)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(40)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(32) = ALGBRC(16)
      ALGBRC(17) =  CONSTS(1)*CONSTS(2)*log( CONSTS(22)*STATES(14))
      ALGBRC(44) = ALGBRC(17)+ALGBRC(4)
      ALGBRC(46) =  CONSTS(6)*(EXP(ALGBRC(32)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(44)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(48) = ALGBRC(41)+ALGBRC(46)
      RATES(2) = ALGBRC(48)
      ALGBRC(50) = - ALGBRC(46)+ALGBRC(41)
      RATES(13) = ALGBRC(50)
      ALGBRC(10) =  CONSTS(1)*CONSTS(2)*log( CONSTS(29)*STATES(18))
      ALGBRC(26) = ALGBRC(10)
      ALGBRC(7) =  CONSTS(1)*CONSTS(2)*log( CONSTS(38)*STATES(3))
      ALGBRC(11) =  CONSTS(1)*CONSTS(2)*log( CONSTS(30)*STATES(19))
      ALGBRC(42) = ALGBRC(7)+ALGBRC(11)
      ALGBRC(43) =  CONSTS(14)*(EXP(ALGBRC(26)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(42)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(3) =  CONSTS(1)*CONSTS(2)*log( CONSTS(36)*STATES(1))
      ALGBRC(27) = ALGBRC(11)+ALGBRC(3)
      ALGBRC(12) =  CONSTS(1)*CONSTS(2)*log( CONSTS(31)*STATES(20))
      ALGBRC(45) = ALGBRC(12)
      ALGBRC(47) =  CONSTS(15)*(EXP(ALGBRC(27)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(45)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(51) = ALGBRC(43) - ALGBRC(47)
      RATES(19) = ALGBRC(51)
      ALGBRC(28) = ALGBRC(12)+ALGBRC(3)
      ALGBRC(13) =  CONSTS(1)*CONSTS(2)*log( CONSTS(32)*STATES(21))
      ALGBRC(52) = ALGBRC(13)
      ALGBRC(54) =  CONSTS(16)*(EXP(ALGBRC(28)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(52)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(55) = - ALGBRC(47) - ALGBRC(54)
      RATES(1) = ALGBRC(55)
      ALGBRC(8) =  CONSTS(1)*CONSTS(2)*log( CONSTS(37)*STATES(4))
      ALGBRC(33) = ALGBRC(17)+ALGBRC(8)
      ALGBRC(18) =  CONSTS(1)*CONSTS(2)*log( CONSTS(23)*STATES(15))
      ALGBRC(49) = ALGBRC(18)
      ALGBRC(53) =  CONSTS(7)*(EXP(ALGBRC(33)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(49)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(57) = ALGBRC(46) - ALGBRC(53)
      RATES(14) = ALGBRC(57)
      ALGBRC(58) = - ALGBRC(54)+ALGBRC(47)
      RATES(20) = ALGBRC(58)
      ALGBRC(29) = ALGBRC(13)
      ALGBRC(2) =  CONSTS(1)*CONSTS(2)*log( CONSTS(42)*STATES(5))
      ALGBRC(24) =  CONSTS(1)*CONSTS(2)*log( CONSTS(41)*STATES(8))
      ALGBRC(14) =  CONSTS(1)*CONSTS(2)*log( CONSTS(33)*STATES(10))
      ALGBRC(59) = ALGBRC(2)+ALGBRC(24)+ALGBRC(14)
      ALGBRC(60) =  CONSTS(17)*(EXP(ALGBRC(29)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(59)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(62) = ALGBRC(60)
      RATES(5) = ALGBRC(62)
      ALGBRC(63) = ALGBRC(60)
      RATES(8) = ALGBRC(63)
      ALGBRC(34) = ALGBRC(18)+ALGBRC(8)
      ALGBRC(19) =  CONSTS(1)*CONSTS(2)*log( CONSTS(24)*STATES(16))
      ALGBRC(56) = ALGBRC(19)
      ALGBRC(61) =  CONSTS(8)*(EXP(ALGBRC(34)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(56)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(64) = ALGBRC(53) - ALGBRC(61)
      RATES(15) = ALGBRC(64)
      ALGBRC(65) = ALGBRC(54) - ALGBRC(60)
      RATES(21) = ALGBRC(65)
      ALGBRC(35) = ALGBRC(19)+ALGBRC(8)
      ALGBRC(1) = STATES(24)/CONSTS(4)
      ALGBRC(67) =  CONSTS(1)*CONSTS(2)*log( CONSTS(25)*STATES(17))+ CONSTS(43)*ALGBRC(1)
      ALGBRC(69) =  CONSTS(9)*(EXP(ALGBRC(35)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(67)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(70) = - ALGBRC(53) - (ALGBRC(61)+ALGBRC(69))
      RATES(4) = ALGBRC(70)
      ALGBRC(6) =  CONSTS(1)*CONSTS(2)*log( CONSTS(39)*STATES(7))
      ALGBRC(30) = ALGBRC(14)+ALGBRC(6)
      ALGBRC(15) =  CONSTS(1)*CONSTS(2)*log( CONSTS(34)*STATES(11))
      ALGBRC(66) = ALGBRC(15)
      ALGBRC(68) =  CONSTS(18)*(EXP(ALGBRC(30)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(66)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(71) = - ALGBRC(68)
      RATES(7) = ALGBRC(71)
      ALGBRC(72) = - ALGBRC(68)+ALGBRC(60)
      RATES(10) = ALGBRC(72)
      ALGBRC(73) = ALGBRC(61) - ALGBRC(69)
      RATES(16) = ALGBRC(73)
      ALGBRC(20) =  CONSTS(1)*CONSTS(2)*log( CONSTS(25)*STATES(17))
      ALGBRC(36) = ALGBRC(20)
      ALGBRC(5) =  CONSTS(1)*CONSTS(2)*log( CONSTS(40)*STATES(6))
      ALGBRC(21) =  CONSTS(1)*CONSTS(2)*log( CONSTS(26)*STATES(9))
      ALGBRC(75) = ALGBRC(21)+ALGBRC(5)
      ALGBRC(77) =  CONSTS(10)*(EXP(ALGBRC(36)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(75)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(78) = ALGBRC(77)
      RATES(6) = ALGBRC(78)
      ALGBRC(31) = ALGBRC(15)
      ALGBRC(74) = ALGBRC(9)
      ALGBRC(76) =  CONSTS(19)*(EXP(ALGBRC(31)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(74)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(80) = ALGBRC(68) - ALGBRC(76)
      RATES(11) = ALGBRC(80)
      ALGBRC(81) = - ALGBRC(41)+ALGBRC(76)
      RATES(12) = ALGBRC(81)
      ALGBRC(82) = ALGBRC(69) - ALGBRC(77)
      RATES(17) = ALGBRC(82)
      ALGBRC(37) = ALGBRC(21)
      ALGBRC(22) =  CONSTS(1)*CONSTS(2)*log( CONSTS(27)*STATES(22))
      ALGBRC(79) = ALGBRC(22)
      ALGBRC(83) =  CONSTS(11)*(EXP(ALGBRC(37)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(79)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(85) = ALGBRC(77) - ALGBRC(83)
      RATES(9) = ALGBRC(85)
      ALGBRC(38) = ALGBRC(22)
      ALGBRC(84) =  CONSTS(44)*ALGBRC(1)+ CONSTS(1)*CONSTS(2)*log( CONSTS(38)*STATES(3))+ CONSTS(1)*CONSTS(2)*log( CONSTS(28)*STATES(23))
      ALGBRC(86) =  CONSTS(12)*(EXP(ALGBRC(38)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(84)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(87) =  CONSTS(44)*ALGBRC(86)+ CONSTS(43)*ALGBRC(69)
      RATES(24) = ALGBRC(87)
      ALGBRC(88) = - ALGBRC(86)+ALGBRC(83)
      RATES(22) = ALGBRC(88)
      ALGBRC(23) =  CONSTS(1)*CONSTS(2)*log( CONSTS(28)*STATES(23))
      ALGBRC(39) = ALGBRC(23)
      ALGBRC(89) = ALGBRC(10)+ALGBRC(7)
      ALGBRC(90) =  CONSTS(13)*(EXP(ALGBRC(39)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(89)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(91) = ALGBRC(86)+ALGBRC(90)+ALGBRC(43)
      RATES(3) = ALGBRC(91)
      ALGBRC(92) = ALGBRC(90) - ALGBRC(43)
      RATES(18) = ALGBRC(92)
      ALGBRC(93) = ALGBRC(86) - ALGBRC(90)
      RATES(23) = ALGBRC(93)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(9) =  CONSTS(1)*CONSTS(2)*log( CONSTS(20)*STATES(12))
      ALGBRC(25) = ALGBRC(9)
      ALGBRC(4) =  CONSTS(1)*CONSTS(2)*log( CONSTS(35)*STATES(2))
      ALGBRC(16) =  CONSTS(1)*CONSTS(2)*log( CONSTS(21)*STATES(13))
      ALGBRC(40) = ALGBRC(4)+ALGBRC(16)
      ALGBRC(41) =  CONSTS(5)*(EXP(ALGBRC(25)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(40)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(32) = ALGBRC(16)
      ALGBRC(17) =  CONSTS(1)*CONSTS(2)*log( CONSTS(22)*STATES(14))
      ALGBRC(44) = ALGBRC(17)+ALGBRC(4)
      ALGBRC(46) =  CONSTS(6)*(EXP(ALGBRC(32)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(44)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(48) = ALGBRC(41)+ALGBRC(46)
      ALGBRC(50) = - ALGBRC(46)+ALGBRC(41)
      ALGBRC(10) =  CONSTS(1)*CONSTS(2)*log( CONSTS(29)*STATES(18))
      ALGBRC(26) = ALGBRC(10)
      ALGBRC(7) =  CONSTS(1)*CONSTS(2)*log( CONSTS(38)*STATES(3))
      ALGBRC(11) =  CONSTS(1)*CONSTS(2)*log( CONSTS(30)*STATES(19))
      ALGBRC(42) = ALGBRC(7)+ALGBRC(11)
      ALGBRC(43) =  CONSTS(14)*(EXP(ALGBRC(26)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(42)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(3) =  CONSTS(1)*CONSTS(2)*log( CONSTS(36)*STATES(1))
      ALGBRC(27) = ALGBRC(11)+ALGBRC(3)
      ALGBRC(12) =  CONSTS(1)*CONSTS(2)*log( CONSTS(31)*STATES(20))
      ALGBRC(45) = ALGBRC(12)
      ALGBRC(47) =  CONSTS(15)*(EXP(ALGBRC(27)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(45)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(51) = ALGBRC(43) - ALGBRC(47)
      ALGBRC(28) = ALGBRC(12)+ALGBRC(3)
      ALGBRC(13) =  CONSTS(1)*CONSTS(2)*log( CONSTS(32)*STATES(21))
      ALGBRC(52) = ALGBRC(13)
      ALGBRC(54) =  CONSTS(16)*(EXP(ALGBRC(28)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(52)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(55) = - ALGBRC(47) - ALGBRC(54)
      ALGBRC(8) =  CONSTS(1)*CONSTS(2)*log( CONSTS(37)*STATES(4))
      ALGBRC(33) = ALGBRC(17)+ALGBRC(8)
      ALGBRC(18) =  CONSTS(1)*CONSTS(2)*log( CONSTS(23)*STATES(15))
      ALGBRC(49) = ALGBRC(18)
      ALGBRC(53) =  CONSTS(7)*(EXP(ALGBRC(33)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(49)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(57) = ALGBRC(46) - ALGBRC(53)
      ALGBRC(58) = - ALGBRC(54)+ALGBRC(47)
      ALGBRC(29) = ALGBRC(13)
      ALGBRC(2) =  CONSTS(1)*CONSTS(2)*log( CONSTS(42)*STATES(5))
      ALGBRC(24) =  CONSTS(1)*CONSTS(2)*log( CONSTS(41)*STATES(8))
      ALGBRC(14) =  CONSTS(1)*CONSTS(2)*log( CONSTS(33)*STATES(10))
      ALGBRC(59) = ALGBRC(2)+ALGBRC(24)+ALGBRC(14)
      ALGBRC(60) =  CONSTS(17)*(EXP(ALGBRC(29)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(59)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(62) = ALGBRC(60)
      ALGBRC(63) = ALGBRC(60)
      ALGBRC(34) = ALGBRC(18)+ALGBRC(8)
      ALGBRC(19) =  CONSTS(1)*CONSTS(2)*log( CONSTS(24)*STATES(16))
      ALGBRC(56) = ALGBRC(19)
      ALGBRC(61) =  CONSTS(8)*(EXP(ALGBRC(34)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(56)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(64) = ALGBRC(53) - ALGBRC(61)
      ALGBRC(65) = ALGBRC(54) - ALGBRC(60)
      ALGBRC(35) = ALGBRC(19)+ALGBRC(8)
      ALGBRC(1) = STATES(24)/CONSTS(4)
      ALGBRC(67) =  CONSTS(1)*CONSTS(2)*log( CONSTS(25)*STATES(17))+ CONSTS(43)*ALGBRC(1)
      ALGBRC(69) =  CONSTS(9)*(EXP(ALGBRC(35)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(67)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(70) = - ALGBRC(53) - (ALGBRC(61)+ALGBRC(69))
      ALGBRC(6) =  CONSTS(1)*CONSTS(2)*log( CONSTS(39)*STATES(7))
      ALGBRC(30) = ALGBRC(14)+ALGBRC(6)
      ALGBRC(15) =  CONSTS(1)*CONSTS(2)*log( CONSTS(34)*STATES(11))
      ALGBRC(66) = ALGBRC(15)
      ALGBRC(68) =  CONSTS(18)*(EXP(ALGBRC(30)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(66)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(71) = - ALGBRC(68)
      ALGBRC(72) = - ALGBRC(68)+ALGBRC(60)
      ALGBRC(73) = ALGBRC(61) - ALGBRC(69)
      ALGBRC(20) =  CONSTS(1)*CONSTS(2)*log( CONSTS(25)*STATES(17))
      ALGBRC(36) = ALGBRC(20)
      ALGBRC(5) =  CONSTS(1)*CONSTS(2)*log( CONSTS(40)*STATES(6))
      ALGBRC(21) =  CONSTS(1)*CONSTS(2)*log( CONSTS(26)*STATES(9))
      ALGBRC(75) = ALGBRC(21)+ALGBRC(5)
      ALGBRC(77) =  CONSTS(10)*(EXP(ALGBRC(36)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(75)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(78) = ALGBRC(77)
      ALGBRC(31) = ALGBRC(15)
      ALGBRC(74) = ALGBRC(9)
      ALGBRC(76) =  CONSTS(19)*(EXP(ALGBRC(31)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(74)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(80) = ALGBRC(68) - ALGBRC(76)
      ALGBRC(81) = - ALGBRC(41)+ALGBRC(76)
      ALGBRC(82) = ALGBRC(69) - ALGBRC(77)
      ALGBRC(37) = ALGBRC(21)
      ALGBRC(22) =  CONSTS(1)*CONSTS(2)*log( CONSTS(27)*STATES(22))
      ALGBRC(79) = ALGBRC(22)
      ALGBRC(83) =  CONSTS(11)*(EXP(ALGBRC(37)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(79)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(85) = ALGBRC(77) - ALGBRC(83)
      ALGBRC(38) = ALGBRC(22)
      ALGBRC(84) =  CONSTS(44)*ALGBRC(1)+ CONSTS(1)*CONSTS(2)*log( CONSTS(38)*STATES(3))+ CONSTS(1)*CONSTS(2)*log( CONSTS(28)*STATES(23))
      ALGBRC(86) =  CONSTS(12)*(EXP(ALGBRC(38)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(84)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(87) =  CONSTS(44)*ALGBRC(86)+ CONSTS(43)*ALGBRC(69)
      ALGBRC(88) = - ALGBRC(86)+ALGBRC(83)
      ALGBRC(23) =  CONSTS(1)*CONSTS(2)*log( CONSTS(28)*STATES(23))
      ALGBRC(39) = ALGBRC(23)
      ALGBRC(89) = ALGBRC(10)+ALGBRC(7)
      ALGBRC(90) =  CONSTS(13)*(EXP(ALGBRC(39)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(89)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(91) = ALGBRC(86)+ALGBRC(90)+ALGBRC(43)
      ALGBRC(92) = ALGBRC(90) - ALGBRC(43)
      ALGBRC(93) = ALGBRC(86) - ALGBRC(90)
      RETURN
      END