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 6 entries in the algebraic variable array.
C There are a total of 12 entries in each of the rate and state variable arrays.
C There are a total of 34 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 k2 in component rate_constants (first_order_rate_constant).
C CONSTS(3) is k3 in component rate_constants (first_order_rate_constant).
C CONSTS(4) is k4 in component rate_constants (first_order_rate_constant).
C CONSTS(5) is k5 in component rate_constants (first_order_rate_constant).
C CONSTS(6) is k6 in component rate_constants (first_order_rate_constant).
C CONSTS(7) is k7 in component rate_constants (first_order_rate_constant).
C CONSTS(8) is k8 in component rate_constants (first_order_rate_constant).
C CONSTS(9) is k9 in component rate_constants (first_order_rate_constant).
C CONSTS(10) is k10 in component rate_constants (first_order_rate_constant).
C CONSTS(11) is k11 in component rate_constants (first_order_rate_constant).
C CONSTS(12) is k12 in component rate_constants (first_order_rate_constant).
C CONSTS(13) is k13 in component rate_constants (first_order_rate_constant).
C CONSTS(14) is k14 in component rate_constants (first_order_rate_constant).
C CONSTS(15) is k15 in component rate_constants (first_order_rate_constant).
C CONSTS(16) is k16 in component rate_constants (first_order_rate_constant).
C CONSTS(17) is k2u in component rate_constants (first_order_rate_constant).
C CONSTS(18) is k7u in component rate_constants (first_order_rate_constant).
C CONSTS(19) is k16u in component rate_constants (first_order_rate_constant).
C CONSTS(20) is az in component rate_constants (first_order_rate_constant).
C CONSTS(21) is bz in component rate_constants (first_order_rate_constant).
C CONSTS(22) is cz in component rate_constants (first_order_rate_constant).
C CONSTS(23) is aw in component rate_constants (first_order_rate_constant).
C CONSTS(24) is bw in component rate_constants (first_order_rate_constant).
C CONSTS(25) is cw in component rate_constants (first_order_rate_constant).
C CONSTS(26) is ai in component rate_constants (first_order_rate_constant).
C CONSTS(27) is bi in component rate_constants (first_order_rate_constant).
C CONSTS(28) is ci in component rate_constants (first_order_rate_constant).
C STATES(1) is cyclin_CDK_active in component cyclin_CDK_active (dimensionless).
C ALGBRC(1) is kplus_z in component rate_constants (first_order_rate_constant).
C ALGBRC(2) is kplus_w in component rate_constants (first_order_rate_constant).
C ALGBRC(3) is kplus_i in component rate_constants (first_order_rate_constant).
C CONSTS(32) is kminus_z in component rate_constants (first_order_rate_constant).
C CONSTS(33) is kminus_w in component rate_constants (first_order_rate_constant).
C CONSTS(34) is kminus_i in component rate_constants (first_order_rate_constant).
C STATES(2) is cyclin in component cyclin (dimensionless).
C STATES(3) is cyclin_CDK_inactive in component cyclin_CDK_inactive (dimensionless).
C ALGBRC(4) is CDK in component CDK (dimensionless).
C STATES(4) is APC in component APC (dimensionless).
C STATES(5) is wee1 in component wee1 (dimensionless).
C STATES(6) is Cdc25_2P in component Cdc25_2P (dimensionless).
C STATES(7) is CKI in component CKI (dimensionless).
C STATES(8) is cyclin_CDK_CKI in component cyclin_CDK_CKI (dimensionless).
C STATES(9) is cyclin_CDK_CKI_P in component cyclin_CDK_CKI_P (dimensionless).
C STATES(10) is Cdc25 in component Cdc25 (dimensionless).
C STATES(11) is Cdc25_P in component Cdc25_P (dimensionless).
C STATES(12) is wee1_P in component wee1_P (dimensionless).
C CONSTS(29) is tau in component APC (minute).
C ALGBRC(5) is h_x in component APC (dimensionless).
C CONSTS(30) is a in component APC (dimensionless).
C CONSTS(31) is CDK_T in component CDK (dimensionless).
C ALGBRC(6) is cyclin_T in component cyclin_T (dimensionless).
C RATES(2) is d/dt cyclin in component cyclin (dimensionless).
C RATES(3) is d/dt cyclin_CDK_inactive in component cyclin_CDK_inactive (dimensionless).
C RATES(1) is d/dt cyclin_CDK_active in component cyclin_CDK_active (dimensionless).
C RATES(10) is d/dt Cdc25 in component Cdc25 (dimensionless).
C RATES(11) is d/dt Cdc25_P in component Cdc25_P (dimensionless).
C RATES(6) is d/dt Cdc25_2P in component Cdc25_2P (dimensionless).
C RATES(5) is d/dt wee1 in component wee1 (dimensionless).
C RATES(12) is d/dt wee1_P in component wee1_P (dimensionless).
C RATES(4) is d/dt APC in component APC (dimensionless).
C RATES(7) is d/dt CKI in component CKI (dimensionless).
C RATES(8) is d/dt cyclin_CDK_CKI in component cyclin_CDK_CKI (dimensionless).
C RATES(9) is d/dt cyclin_CDK_CKI_P in component cyclin_CDK_CKI_P (dimensionless).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 300
      CONSTS(2) = 5
      CONSTS(3) = 30
      CONSTS(4) = 30
      CONSTS(5) = 0.1
      CONSTS(6) = 1
      CONSTS(7) = 10
      CONSTS(8) = 100
      CONSTS(9) = 1
      CONSTS(10) = 10
      CONSTS(11) = 1
      CONSTS(12) = 0
      CONSTS(13) = 1
      CONSTS(14) = 1
      CONSTS(15) = 1
      CONSTS(16) = 2
      CONSTS(17) = 50
      CONSTS(18) = 0
      CONSTS(19) = 25
      CONSTS(20) = 10
      CONSTS(21) = 0.1
      CONSTS(22) = 1
      CONSTS(23) = 10
      CONSTS(24) = 0.1
      CONSTS(25) = 1
      CONSTS(26) = 10
      CONSTS(27) = 0.1
      CONSTS(28) = 1
      STATES(1) = 0.1
      STATES(2) = 0
      STATES(3) = 0.1
      STATES(4) = 0
      STATES(5) = 0
      STATES(6) = 0
      STATES(7) = 0
      STATES(8) = 0
      STATES(9) = 0
      STATES(10) = 0
      STATES(11) = 0
      STATES(12) = 0
      CONSTS(29) = 25
      CONSTS(30) = 4
      CONSTS(31) = 200
      CONSTS(32) = CONSTS(20)
      CONSTS(33) = CONSTS(23)
      CONSTS(34) = CONSTS(26)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = ((((( CONSTS(5)*STATES(3)+ STATES(6)*STATES(3)*1.00000) -  CONSTS(6)*STATES(1)) -  STATES(5)*STATES(1)*1.00000) -  (CONSTS(7)+ CONSTS(18)*STATES(4))*STATES(1)) -  CONSTS(14)*STATES(1)*STATES(7))+ CONSTS(15)*STATES(8)+ (CONSTS(16)+ CONSTS(19)*STATES(4))*STATES(9)
      RATES(7) = ((CONSTS(12) -  CONSTS(13)*STATES(7)) -  CONSTS(12)*STATES(1)*STATES(7))+ CONSTS(15)*STATES(8)
      ALGBRC(4) = ((((CONSTS(31) - STATES(1)) - STATES(3)) - STATES(8)) - STATES(9))/CONSTS(31)
      RATES(2) = ((CONSTS(1)+ CONSTS(4)*STATES(3)) -  CONSTS(3)*STATES(2)*ALGBRC(4)) -  (CONSTS(2)+ CONSTS(17)*STATES(4))*STATES(2)
      RATES(3) = ((( CONSTS(3)*STATES(2)*ALGBRC(4)+ CONSTS(6)*STATES(1)+ STATES(5)*STATES(1)*1.00000) -  CONSTS(4)*STATES(3)) -  CONSTS(5)*STATES(3)) -  STATES(6)*STATES(3)*1.00000
      ALGBRC(1) = CONSTS(21)+ CONSTS(22)*STATES(1)
      RATES(10) = ((CONSTS(8)+ CONSTS(32)*STATES(11)) -  ALGBRC(1)*STATES(10)) -  CONSTS(9)*STATES(10)
      RATES(11) = ( ALGBRC(1)*(STATES(10) - STATES(11))+ CONSTS(32)*(STATES(6) - STATES(11))) -  CONSTS(9)*STATES(11)
      RATES(6) = ( ALGBRC(1)*STATES(11) -  CONSTS(32)*STATES(6)) -  CONSTS(9)*STATES(6)
      ALGBRC(2) = CONSTS(24)+ CONSTS(25)*STATES(1)
      RATES(5) = ((CONSTS(10)+ CONSTS(33)*STATES(12)) -  ALGBRC(2)*STATES(5)) -  CONSTS(11)*STATES(5)
      RATES(12) = ( ALGBRC(2)*STATES(5) -  CONSTS(33)*STATES(12)) -  CONSTS(11)*STATES(12)
      ALGBRC(5) = STATES(1) ** 2.00000/(CONSTS(30) ** 2.00000+STATES(1) ** 2.00000)
      RATES(4) = (ALGBRC(5) - STATES(4))/CONSTS(29)
      ALGBRC(3) = CONSTS(27)+ CONSTS(28)*STATES(1)
      RATES(8) = (( CONSTS(14)*STATES(1)*STATES(7) -  CONSTS(15)*STATES(8))+ CONSTS(34)*STATES(9)) -  ALGBRC(3)*STATES(8)
      RATES(9) = ( ALGBRC(3)*STATES(8) -  CONSTS(34)*STATES(9)) -  (CONSTS(16)+ CONSTS(19)*STATES(4))*STATES(9)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(4) = ((((CONSTS(31) - STATES(1)) - STATES(3)) - STATES(8)) - STATES(9))/CONSTS(31)
      ALGBRC(1) = CONSTS(21)+ CONSTS(22)*STATES(1)
      ALGBRC(2) = CONSTS(24)+ CONSTS(25)*STATES(1)
      ALGBRC(5) = STATES(1) ** 2.00000/(CONSTS(30) ** 2.00000+STATES(1) ** 2.00000)
      ALGBRC(3) = CONSTS(27)+ CONSTS(28)*STATES(1)
      ALGBRC(6) = STATES(2)+STATES(1)+STATES(3)
      RETURN
      END