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 20 entries in the algebraic variable array.
C There are a total of 17 entries in each of the rate and state variable arrays.
C There are a total of 33 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C ALGBRC(1) is v1 in component v1 (flux).
C STATES(1) is pM9 in component pM9 (molar).
C STATES(2) is M3 in component M3 (molar).
C STATES(3) is M3_pM9 in component M3_pM9 (molar).
C CONSTS(1) is kon_M3pM9 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(2) is koff_M3pM9 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(2) is v2 in component v2 (flux).
C CONSTS(3) is kact_M3pM9 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(3) is v3 in component v3 (flux).
C STATES(4) is M3_T1 in component M3_T1 (molar).
C STATES(5) is T1 in component T1 (molar).
C CONSTS(4) is kon_M3T1 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(5) is koff_M3T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(4) is v4 in component v4 (flux).
C STATES(6) is pM9_T1 in component pM9_T1 (molar).
C CONSTS(6) is kon_pM9T1 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(7) is koff_pM9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(5) is v5 in component v5 (flux).
C STATES(7) is M3_pM9_T1 in component M3_pM9_T1 (molar).
C CONSTS(8) is kon_M3pM9T1 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(9) is koff_M3pM9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(6) is v6 in component v6 (flux).
C CONSTS(10) is kact_M3pM9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(7) is v7 in component v7 (flux).
C STATES(8) is M9_T1_star in component M9_T1_star (molar).
C STATES(9) is M9 in component M9 (molar).
C CONSTS(11) is kon_M9T1_star in component kinetic_parameters (second_order_rate_constant).
C CONSTS(12) is koff_M9T1_star in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(8) is v8 in component v8 (flux).
C STATES(10) is M9_T1 in component M9_T1 (molar).
C CONSTS(13) is kon_M9T1 in component kinetic_parameters (first_order_rate_constant).
C CONSTS(14) is koff_M9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(9) is v9 in component v9 (flux).
C STATES(11) is M9_T1_M3 in component M9_T1_M3 (molar).
C CONSTS(15) is kon_M9_M3T1 in component kinetic_parameters (first_order_rate_constant).
C CONSTS(16) is koff_M9_M3T1 in component kinetic_parameters (second_order_rate_constant).
C ALGBRC(10) is v10 in component v10 (flux).
C STATES(12) is pM9_T1_M3 in component pM9_T1_M3 (molar).
C CONSTS(17) is kon_M3_pM9T1 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(18) is koff_M3_pM9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(11) is v11 in component v11 (flux).
C CONSTS(19) is kon_pM9T1M3 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(20) is koff_pM9T1M3 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(12) is v12 in component v12 (flux).
C STATES(13) is M3_pM9_T1_M3 in component M3_pM9_T1_M3 (molar).
C CONSTS(21) is kon_M3pM9T1M3 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(22) is koff_M3pM9T1M3 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(13) is v13 in component v13 (flux).
C CONSTS(23) is kact_M3pM9T1M3 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(14) is v14 in component v14 (flux).
C CONSTS(24) is kact_M9T1M3 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(15) is v15 in component v15 (flux).
C STATES(14) is Tr in component Tr (molar).
C STATES(15) is Tr_pM9 in component Tr_pM9 (molar).
C CONSTS(25) is kon_TrpM9 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(26) is koff_TrpM9 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(16) is v16 in component v16 (flux).
C CONSTS(27) is kact_TrpM9 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(17) is v17 in component v17 (flux).
C STATES(16) is Tr_pM9_T1 in component Tr_pM9_T1 (molar).
C CONSTS(28) is kon_TrpM9T1 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(29) is koff_TrpM9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(18) is v18 in component v18 (flux).
C CONSTS(30) is kact_TrpM9T1 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(19) is v19 in component v19 (flux).
C STATES(17) is Tr_pM9_T1_M3 in component Tr_pM9_T1_M3 (molar).
C CONSTS(31) is kon_TrpM9T1M3 in component kinetic_parameters (second_order_rate_constant).
C CONSTS(32) is koff_TrpM9T1M3 in component kinetic_parameters (first_order_rate_constant).
C ALGBRC(20) is v20 in component v20 (flux).
C CONSTS(33) is kact_TrpM9T1M3 in component kinetic_parameters (first_order_rate_constant).
C RATES(1) is d/dt pM9 in component pM9 (molar).
C RATES(2) is d/dt M3 in component M3 (molar).
C RATES(3) is d/dt M3_pM9 in component M3_pM9 (molar).
C RATES(5) is d/dt T1 in component T1 (molar).
C RATES(4) is d/dt M3_T1 in component M3_T1 (molar).
C RATES(6) is d/dt pM9_T1 in component pM9_T1 (molar).
C RATES(7) is d/dt M3_pM9_T1 in component M3_pM9_T1 (molar).
C RATES(8) is d/dt M9_T1_star in component M9_T1_star (molar).
C RATES(9) is d/dt M9 in component M9 (molar).
C RATES(10) is d/dt M9_T1 in component M9_T1 (molar).
C RATES(12) is d/dt pM9_T1_M3 in component pM9_T1_M3 (molar).
C RATES(13) is d/dt M3_pM9_T1_M3 in component M3_pM9_T1_M3 (molar).
C RATES(11) is d/dt M9_T1_M3 in component M9_T1_M3 (molar).
C RATES(14) is d/dt Tr in component Tr (molar).
C RATES(15) is d/dt Tr_pM9 in component Tr_pM9 (molar).
C RATES(16) is d/dt Tr_pM9_T1 in component Tr_pM9_T1 (molar).
C RATES(17) is d/dt Tr_pM9_T1_M3 in component Tr_pM9_T1_M3 (molar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 3e-7
      STATES(2) = 5e-8
      STATES(3) = 0
      CONSTS(1) = 1e4
      CONSTS(2) = 0.001
      CONSTS(3) = 0.0019
      STATES(4) = 0
      STATES(5) = 3e-7
      CONSTS(4) = 1.9e6
      CONSTS(5) = 1.26e-4
      STATES(6) = 0
      CONSTS(6) = 3.4e4
      CONSTS(7) = 7.48e-5
      STATES(7) = 0
      CONSTS(8) = 1e4
      CONSTS(9) = 0.001
      CONSTS(10) = 0.00057
      STATES(8) = 0
      STATES(9) = 0
      CONSTS(11) = 5.6e6
      CONSTS(12) = 1.6e-5
      STATES(10) = 0
      CONSTS(13) = 6.3e-4
      CONSTS(14) = 2.5e-4
      STATES(11) = 0
      CONSTS(15) = 7.48e-5
      CONSTS(16) = 3.4e4
      STATES(12) = 0
      CONSTS(17) = 1.9e6
      CONSTS(18) = 1.26e-4
      CONSTS(19) = 3.4e4
      CONSTS(20) = 7.48e-5
      STATES(13) = 0
      CONSTS(21) = 1e4
      CONSTS(22) = 0.001
      CONSTS(23) = 0.00057
      CONSTS(24) = 1.26e-4
      STATES(14) = 1e-7
      STATES(15) = 0
      CONSTS(25) = 1e4
      CONSTS(26) = 0.007
      CONSTS(27) = 0.002
      STATES(16) = 0
      CONSTS(28) = 1e4
      CONSTS(29) = 0.007
      CONSTS(30) = 0.0006
      STATES(17) = 0
      CONSTS(31) = 1e4
      CONSTS(32) = 0.007
      CONSTS(33) = 0.0006
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(1)*STATES(2)*STATES(1) -  CONSTS(2)*STATES(3)
      ALGBRC(2) =  CONSTS(3)*STATES(3)
      RATES(3) = ALGBRC(1) - ALGBRC(2)
      ALGBRC(5) =  CONSTS(8)*STATES(6)*STATES(2) -  CONSTS(9)*STATES(7)
      ALGBRC(6) =  CONSTS(10)*STATES(7)
      RATES(7) = ALGBRC(5) - ALGBRC(6)
      ALGBRC(3) =  CONSTS(4)*STATES(2)*STATES(5) -  CONSTS(5)*STATES(4)
      ALGBRC(4) =  CONSTS(6)*STATES(1)*STATES(5) -  CONSTS(7)*STATES(6)
      ALGBRC(7) =  CONSTS(11)*STATES(5)*STATES(9) -  CONSTS(12)*STATES(8)
      RATES(5) = - (ALGBRC(3)+ALGBRC(4)+ALGBRC(7))
      ALGBRC(9) =  CONSTS(15)*STATES(11) -  CONSTS(16)*STATES(9)*STATES(4)
      ALGBRC(11) =  CONSTS(19)*STATES(1)*STATES(4) -  CONSTS(20)*STATES(12)
      RATES(4) = (ALGBRC(3)+ALGBRC(9)) - ALGBRC(11)
      ALGBRC(12) =  CONSTS(21)*STATES(2)*STATES(12) -  CONSTS(22)*STATES(13)
      ALGBRC(13) =  CONSTS(23)*STATES(13)
      RATES(13) = ALGBRC(12) - ALGBRC(13)
      ALGBRC(10) =  CONSTS(17)*STATES(6)*STATES(2) -  CONSTS(18)*STATES(12)
      ALGBRC(14) =  CONSTS(24)*STATES(11)
      RATES(2) = (ALGBRC(2)+ALGBRC(6)+ALGBRC(13)+ALGBRC(14)) - (ALGBRC(1)+ALGBRC(3)+ALGBRC(5)+ALGBRC(10)+ALGBRC(12))
      ALGBRC(8) =  CONSTS(13)*STATES(8) -  CONSTS(14)*STATES(10)
      RATES(8) = (ALGBRC(7)+ALGBRC(14)) - ALGBRC(8)
      ALGBRC(15) =  CONSTS(25)*STATES(14)*STATES(1) -  CONSTS(26)*STATES(15)
      RATES(1) = - (ALGBRC(1)+ALGBRC(4)+ALGBRC(15)+ALGBRC(11))
      ALGBRC(16) =  CONSTS(27)*STATES(15)
      RATES(9) = (ALGBRC(2)+ALGBRC(9)+ALGBRC(16)) - ALGBRC(7)
      RATES(15) = ALGBRC(15) - ALGBRC(16)
      ALGBRC(17) =  CONSTS(28)*STATES(6)*STATES(14) -  CONSTS(29)*STATES(16)
      RATES(6) = ALGBRC(4) - (ALGBRC(5)+ALGBRC(10)+ALGBRC(17))
      ALGBRC(18) =  CONSTS(30)*STATES(16)
      RATES(10) = ALGBRC(8)+ALGBRC(18)
      RATES(16) = ALGBRC(17) - ALGBRC(18)
      ALGBRC(19) =  CONSTS(31)*STATES(14)*STATES(12) -  CONSTS(32)*STATES(17)
      RATES(12) = (ALGBRC(10)+ALGBRC(11)) - (ALGBRC(12)+ALGBRC(19))
      ALGBRC(20) =  CONSTS(33)*STATES(17)
      RATES(11) = (ALGBRC(13)+ALGBRC(20)) - (ALGBRC(14)+ALGBRC(9))
      RATES(14) = (ALGBRC(16)+ALGBRC(18)+ALGBRC(20)) - (ALGBRC(15)+ALGBRC(17)+ALGBRC(19))
      RATES(17) = ALGBRC(19) - ALGBRC(20)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(1)*STATES(2)*STATES(1) -  CONSTS(2)*STATES(3)
      ALGBRC(2) =  CONSTS(3)*STATES(3)
      ALGBRC(5) =  CONSTS(8)*STATES(6)*STATES(2) -  CONSTS(9)*STATES(7)
      ALGBRC(6) =  CONSTS(10)*STATES(7)
      ALGBRC(3) =  CONSTS(4)*STATES(2)*STATES(5) -  CONSTS(5)*STATES(4)
      ALGBRC(4) =  CONSTS(6)*STATES(1)*STATES(5) -  CONSTS(7)*STATES(6)
      ALGBRC(7) =  CONSTS(11)*STATES(5)*STATES(9) -  CONSTS(12)*STATES(8)
      ALGBRC(9) =  CONSTS(15)*STATES(11) -  CONSTS(16)*STATES(9)*STATES(4)
      ALGBRC(11) =  CONSTS(19)*STATES(1)*STATES(4) -  CONSTS(20)*STATES(12)
      ALGBRC(12) =  CONSTS(21)*STATES(2)*STATES(12) -  CONSTS(22)*STATES(13)
      ALGBRC(13) =  CONSTS(23)*STATES(13)
      ALGBRC(10) =  CONSTS(17)*STATES(6)*STATES(2) -  CONSTS(18)*STATES(12)
      ALGBRC(14) =  CONSTS(24)*STATES(11)
      ALGBRC(8) =  CONSTS(13)*STATES(8) -  CONSTS(14)*STATES(10)
      ALGBRC(15) =  CONSTS(25)*STATES(14)*STATES(1) -  CONSTS(26)*STATES(15)
      ALGBRC(16) =  CONSTS(27)*STATES(15)
      ALGBRC(17) =  CONSTS(28)*STATES(6)*STATES(14) -  CONSTS(29)*STATES(16)
      ALGBRC(18) =  CONSTS(30)*STATES(16)
      ALGBRC(19) =  CONSTS(31)*STATES(14)*STATES(12) -  CONSTS(32)*STATES(17)
      ALGBRC(20) =  CONSTS(33)*STATES(17)
      RETURN
      END