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 21 entries in the algebraic variable array.
C There are a total of 11 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 (minute).
C CONSTS(1) is k1 in component rate_constants (first_order_rate_constant).
C CONSTS(2) is k1_ in component rate_constants (first_order_rate_constant).
C CONSTS(3) is k1__ in component rate_constants (first_order_rate_constant).
C CONSTS(4) is kn1 in component rate_constants (first_order_rate_constant).
C CONSTS(5) is k2 in component rate_constants (first_order_rate_constant).
C CONSTS(6) is kn2 in component rate_constants (first_order_rate_constant).
C CONSTS(7) is k3 in component rate_constants (first_order_rate_constant).
C CONSTS(8) is k3_ in component rate_constants (first_order_rate_constant).
C CONSTS(9) is kn4 in component rate_constants (first_order_rate_constant).
C CONSTS(10) is k5 in component rate_constants (first_order_rate_constant).
C CONSTS(11) is kn6 in component rate_constants (first_order_rate_constant).
C CONSTS(12) is k8 in component rate_constants (first_order_rate_constant).
C CONSTS(13) is k9 in component rate_constants (first_order_rate_constant).
C CONSTS(14) is k10 in component rate_constants (first_order_rate_constant).
C CONSTS(15) is k17 in component rate_constants (first_order_rate_constant).
C CONSTS(16) is k18 in component rate_constants (first_order_rate_constant).
C CONSTS(17) is k19 in component rate_constants (first_order_rate_constant).
C CONSTS(18) is k20 in component rate_constants (first_order_rate_constant).
C CONSTS(19) is k21 in component rate_constants (first_order_rate_constant).
C CONSTS(20) is k22 in component rate_constants (first_order_rate_constant).
C CONSTS(21) is k24 in component rate_constants (first_order_rate_constant).
C CONSTS(22) is k25 in component rate_constants (first_order_rate_constant).
C CONSTS(23) is k25_ in component rate_constants (first_order_rate_constant).
C CONSTS(24) is k26 in component rate_constants (first_order_rate_constant).
C CONSTS(25) is k26_ in component rate_constants (first_order_rate_constant).
C CONSTS(26) is k28 in component rate_constants (first_order_rate_constant).
C CONSTS(27) is k29 in component rate_constants (first_order_rate_constant).
C STATES(1) is a_CyclinE_Cdk2 in component a_CyclinE_Cdk2 (dimensionless).
C ALGBRC(1) is V_2 in component V_2 (first_order_rate_constant).
C ALGBRC(14) is V_10 in component V_10 (first_order_rate_constant).
C ALGBRC(3) is V_n2 in component V_n2 (first_order_rate_constant).
C ALGBRC(13) is V_9 in component V_9 (first_order_rate_constant).
C ALGBRC(15) is V_21 in component V_21 (first_order_rate_constant).
C STATES(2) is i_CyclinE_Cdk2 in component i_CyclinE_Cdk2 (dimensionless).
C ALGBRC(6) is V_3 in component V_3 (first_order_rate_constant).
C ALGBRC(10) is V_5 in component V_5 (first_order_rate_constant).
C STATES(3) is pRB_E2F in component pRB_E2F (dimensionless).
C CONSTS(33) is V_n1 in component V_n1 (first_order_rate_constant).
C ALGBRC(2) is V_1 in component V_1 (first_order_rate_constant).
C STATES(4) is E2F in component E2F (dimensionless).
C CONSTS(28) is V_4 in component E2F (first_order_rate_constant).
C ALGBRC(7) is V_18 in component V_18 (first_order_rate_constant).
C ALGBRC(4) is V_n4 in component V_n4 (first_order_rate_constant).
C STATES(5) is pRB in component pRB (dimensionless).
C CONSTS(29) is V_27 in component pRB (first_order_rate_constant).
C ALGBRC(5) is V_26 in component V_26 (first_order_rate_constant).
C ALGBRC(11) is V_29 in component V_29 (first_order_rate_constant).
C ALGBRC(8) is V_28 in component V_28 (first_order_rate_constant).
C STATES(6) is CycD_Cdk4 in component CycD_Cdk4 (dimensionless).
C CONSTS(30) is V_6 in component CycD_Cdk4 (first_order_rate_constant).
C ALGBRC(19) is V_20 in component V_20 (first_order_rate_constant).
C ALGBRC(9) is V_n6 in component V_n6 (first_order_rate_constant).
C ALGBRC(17) is V_19 in component V_19 (first_order_rate_constant).
C ALGBRC(16) is V_17 in component V_17 (first_order_rate_constant).
C STATES(7) is p27 in component p27 (dimensionless).
C CONSTS(31) is V_7 in component p27 (first_order_rate_constant).
C ALGBRC(12) is V_8 in component V_8 (first_order_rate_constant).
C ALGBRC(21) is V_22 in component V_22 (first_order_rate_constant).
C STATES(8) is CycE_Cdk2_p27 in component CycE_Cdk2_p27 (dimensionless).
C STATES(9) is CycD_Cdk4_p27 in component CycD_Cdk4_p27 (dimensionless).
C STATES(10) is p16 in component p16 (dimensionless).
C CONSTS(32) is V_23 in component p16 (first_order_rate_constant).
C ALGBRC(20) is V_25 in component V_25 (first_order_rate_constant).
C ALGBRC(18) is V_24 in component V_24 (first_order_rate_constant).
C STATES(11) is pRB_P in component pRB_P (dimensionless).
C RATES(1) is d/dt a_CyclinE_Cdk2 in component a_CyclinE_Cdk2 (dimensionless).
C RATES(2) is d/dt i_CyclinE_Cdk2 in component i_CyclinE_Cdk2 (dimensionless).
C RATES(3) is d/dt pRB_E2F in component pRB_E2F (dimensionless).
C RATES(4) is d/dt E2F in component E2F (dimensionless).
C RATES(5) is d/dt pRB in component pRB (dimensionless).
C RATES(6) is d/dt CycD_Cdk4 in component CycD_Cdk4 (dimensionless).
C RATES(7) is d/dt p27 in component p27 (dimensionless).
C RATES(8) is d/dt CycE_Cdk2_p27 in component CycE_Cdk2_p27 (dimensionless).
C RATES(9) is d/dt CycD_Cdk4_p27 in component CycD_Cdk4_p27 (dimensionless).
C RATES(10) is d/dt p16 in component p16 (dimensionless).
C RATES(11) is d/dt pRB_P in component pRB_P (dimensionless).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 0.1
      CONSTS(2) = 0.5
      CONSTS(3) = 0.5
      CONSTS(4) = 0.001
      CONSTS(5) = 0.1
      CONSTS(6) = 1
      CONSTS(7) = 1.42
      CONSTS(8) = 0
      CONSTS(9) = 0.016
      CONSTS(10) = 0.02
      CONSTS(11) = 5
      CONSTS(12) = 2
      CONSTS(13) = 2
      CONSTS(14) = 0.035
      CONSTS(15) = 3.5
      CONSTS(16) = 0.0001
      CONSTS(17) = 0.05
      CONSTS(18) = 0.01
      CONSTS(19) = 0.1
      CONSTS(20) = 0.001
      CONSTS(21) = 0.1
      CONSTS(22) = 0.01
      CONSTS(23) = 0.02
      CONSTS(24) = 0.01
      CONSTS(25) = 0.1
      CONSTS(26) = 0.01
      CONSTS(27) = 0.001
      STATES(1) = 0
      STATES(2) = 0.01
      STATES(3) = 1.95
      STATES(4) = 0
      CONSTS(28) = 0.000001
      STATES(5) = 0.05
      CONSTS(29) = 0.01
      STATES(6) = 0
      CONSTS(30) = 0.018
      STATES(7) = 5
      CONSTS(31) = 0.0001
      STATES(8) = 1
      STATES(9) = 0
      STATES(10) = 5
      CONSTS(32) = 0.2
      STATES(11) = 0.01
      CONSTS(33) = CONSTS(4)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(2) =  CONSTS(2)*STATES(6)*STATES(3)+ CONSTS(3)*STATES(9)*STATES(3)+ CONSTS(1)*STATES(1)*STATES(3)
      RATES(3) = CONSTS(33) - ALGBRC(2)
      ALGBRC(7) =  CONSTS(16)*STATES(4)
      ALGBRC(4) =  CONSTS(9)*STATES(4)
      RATES(4) = (ALGBRC(2)+CONSTS(28)+ALGBRC(7)) - (CONSTS(33)+ALGBRC(4))
      ALGBRC(1) =  CONSTS(5)*STATES(1)*STATES(2)
      ALGBRC(3) =  CONSTS(6)*STATES(1)
      ALGBRC(6) =  CONSTS(7)*STATES(4)+CONSTS(8)
      ALGBRC(10) =  CONSTS(10)*STATES(2)
      RATES(2) = (ALGBRC(6)+ALGBRC(3)) - (ALGBRC(1)+ALGBRC(10))
      ALGBRC(5) = CONSTS(24)/( (1.00000+ CONSTS(25)*STATES(10))*1.00000)
      ALGBRC(11) =  CONSTS(27)*STATES(11)
      ALGBRC(8) =  CONSTS(26)*STATES(5)
      RATES(5) = (CONSTS(29)+ALGBRC(5)+ALGBRC(11)) - (CONSTS(33)+ALGBRC(8))
      RATES(11) = ALGBRC(2) - ALGBRC(11)
      ALGBRC(14) =  CONSTS(14)*STATES(8)
      ALGBRC(13) =  CONSTS(13)*STATES(7)*STATES(1)
      RATES(8) = ALGBRC(13) - ALGBRC(14)
      ALGBRC(15) =  CONSTS(19)*STATES(1) ** 2.00000
      RATES(1) = (ALGBRC(1)+ALGBRC(14)) - (ALGBRC(3)+ALGBRC(13)+ALGBRC(15))
      ALGBRC(19) =  CONSTS(18)*STATES(9)
      ALGBRC(9) =  CONSTS(11)*STATES(6)
      ALGBRC(17) =  CONSTS(17)*STATES(7)*STATES(6)
      ALGBRC(16) =  CONSTS(15)*STATES(10)*STATES(6)
      RATES(6) = (CONSTS(30)+ALGBRC(19)) - (ALGBRC(9)+ALGBRC(17)+ALGBRC(16))
      RATES(9) = ALGBRC(17) - ALGBRC(19)
      ALGBRC(20) = CONSTS(22)/( (1.00000+ CONSTS(23)*STATES(5))*1.00000)
      ALGBRC(18) =  CONSTS(21)*STATES(10)
      RATES(10) = (CONSTS(32)+ALGBRC(20)) - (ALGBRC(16)+ALGBRC(18))
      ALGBRC(12) =  CONSTS(12)*STATES(7)*STATES(1)
      ALGBRC(21) =  CONSTS(20)*STATES(7)
      RATES(7) = (CONSTS(31)+ALGBRC(14)+ALGBRC(19)) - (ALGBRC(12)+ALGBRC(13)+ALGBRC(17)+ALGBRC(21))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(2) =  CONSTS(2)*STATES(6)*STATES(3)+ CONSTS(3)*STATES(9)*STATES(3)+ CONSTS(1)*STATES(1)*STATES(3)
      ALGBRC(7) =  CONSTS(16)*STATES(4)
      ALGBRC(4) =  CONSTS(9)*STATES(4)
      ALGBRC(1) =  CONSTS(5)*STATES(1)*STATES(2)
      ALGBRC(3) =  CONSTS(6)*STATES(1)
      ALGBRC(6) =  CONSTS(7)*STATES(4)+CONSTS(8)
      ALGBRC(10) =  CONSTS(10)*STATES(2)
      ALGBRC(5) = CONSTS(24)/( (1.00000+ CONSTS(25)*STATES(10))*1.00000)
      ALGBRC(11) =  CONSTS(27)*STATES(11)
      ALGBRC(8) =  CONSTS(26)*STATES(5)
      ALGBRC(14) =  CONSTS(14)*STATES(8)
      ALGBRC(13) =  CONSTS(13)*STATES(7)*STATES(1)
      ALGBRC(15) =  CONSTS(19)*STATES(1) ** 2.00000
      ALGBRC(19) =  CONSTS(18)*STATES(9)
      ALGBRC(9) =  CONSTS(11)*STATES(6)
      ALGBRC(17) =  CONSTS(17)*STATES(7)*STATES(6)
      ALGBRC(16) =  CONSTS(15)*STATES(10)*STATES(6)
      ALGBRC(20) = CONSTS(22)/( (1.00000+ CONSTS(23)*STATES(5))*1.00000)
      ALGBRC(18) =  CONSTS(21)*STATES(10)
      ALGBRC(12) =  CONSTS(12)*STATES(7)*STATES(1)
      ALGBRC(21) =  CONSTS(20)*STATES(7)
      RETURN
      END