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 14 entries in each of the rate and state variable arrays.
C There are a total of 24 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is NatP in component NatP (molecules).
C CONSTS(23) is v1 in component v1 (flux).
C ALGBRC(1) is v2 in component v2 (flux).
C ALGBRC(5) is v5 in component v5 (flux).
C STATES(2) is MisP in component MisP (molecules).
C ALGBRC(2) is v3 in component v3 (flux).
C ALGBRC(4) is v4 in component v4 (flux).
C ALGBRC(6) is v6 in component v6 (flux).
C ALGBRC(7) is v7 in component v7 (flux).
C STATES(3) is MCom in component MCom (molecules).
C STATES(4) is Hsp90 in component Hsp90 (molecules).
C ALGBRC(9) is v9 in component v9 (flux).
C ALGBRC(17) is v16 in component v16 (flux).
C ALGBRC(8) is v8 in component v8 (flux).
C ALGBRC(18) is v17 in component v17 (flux).
C STATES(5) is HCom in component HCom (molecules).
C STATES(6) is HSF1 in component HSF1 (molecules).
C ALGBRC(15) is v13 in component v13 (flux).
C ALGBRC(13) is v12 in component v12 (flux).
C ALGBRC(11) is v10 in component v10 (flux).
C ALGBRC(12) is v11 in component v11 (flux).
C STATES(7) is DiH in component DiH (molecules).
C STATES(8) is TriH in component TriH (molecules).
C ALGBRC(14) is v14 in component v14 (flux).
C ALGBRC(16) is v15 in component v15 (flux).
C STATES(9) is HSE_TriH in component HSE_TriH (molecules).
C STATES(10) is HSE in component HSE (molecules).
C STATES(11) is AggP in component AggP (molecules).
C ALGBRC(10) is v7b in component v7b (flux).
C STATES(12) is ROS in component ROS (molecules).
C CONSTS(24) is v20 in component v20 (flux).
C ALGBRC(3) is v21 in component v21 (flux).
C STATES(13) is ATP in component ATP (molecules).
C ALGBRC(19) is v18 in component v18 (flux).
C ALGBRC(20) is v19 in component v19 (flux).
C STATES(14) is ADP in component ADP (molecules).
C CONSTS(1) is k1 in component v1 (flux).
C CONSTS(2) is k2 in component v2 (second_order_rate_constant).
C CONSTS(3) is k3 in component v3 (second_order_rate_constant).
C CONSTS(4) is k4 in component v4 (first_order_rate_constant).
C CONSTS(5) is k5 in component v5 (second_order_rate_constant).
C CONSTS(6) is k6 in component v6 (second_order_rate_constant).
C CONSTS(7) is k7 in component v7 (second_order_rate_constant).
C CONSTS(8) is k7 in component v7b (second_order_rate_constant).
C CONSTS(9) is k8 in component v8 (second_order_rate_constant).
C CONSTS(10) is k9 in component v9 (first_order_rate_constant).
C CONSTS(11) is k10 in component v10 (second_order_rate_constant).
C CONSTS(12) is k11 in component v11 (second_order_rate_constant).
C CONSTS(13) is k12 in component v12 (first_order_rate_constant).
C CONSTS(14) is k13 in component v13 (first_order_rate_constant).
C CONSTS(15) is k14 in component v14 (second_order_rate_constant).
C CONSTS(16) is k15 in component v15 (first_order_rate_constant).
C CONSTS(17) is k16 in component v16 (first_order_rate_constant).
C CONSTS(18) is k17 in component v17 (second_order_rate_constant).
C CONSTS(19) is k18 in component v18 (first_order_rate_constant).
C CONSTS(20) is k19 in component v19 (first_order_rate_constant).
C CONSTS(21) is k20 in component v20 (flux).
C CONSTS(22) is k21 in component v21 (first_order_rate_constant).
C RATES(1) is d/dt NatP in component NatP (molecules).
C RATES(2) is d/dt MisP in component MisP (molecules).
C RATES(3) is d/dt MCom in component MCom (molecules).
C RATES(4) is d/dt Hsp90 in component Hsp90 (molecules).
C RATES(5) is d/dt HCom in component HCom (molecules).
C RATES(6) is d/dt HSF1 in component HSF1 (molecules).
C RATES(7) is d/dt DiH in component DiH (molecules).
C RATES(8) is d/dt TriH in component TriH (molecules).
C RATES(9) is d/dt HSE_TriH in component HSE_TriH (molecules).
C RATES(10) is d/dt HSE in component HSE (molecules).
C RATES(11) is d/dt AggP in component AggP (molecules).
C RATES(12) is d/dt ROS in component ROS (molecules).
C RATES(13) is d/dt ATP in component ATP (molecules).
C RATES(14) is d/dt ADP in component ADP (molecules).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 6000000
      STATES(2) = 0
      STATES(3) = 0
      STATES(4) = 300000
      STATES(5) = 5900
      STATES(6) = 100
      STATES(7) = 0
      STATES(8) = 0
      STATES(9) = 0
      STATES(10) = 1
      STATES(11) = 0
      STATES(12) = 100
      STATES(13) = 10000
      STATES(14) = 1000
      CONSTS(1) = 10
      CONSTS(2) = 0.00002
      CONSTS(3) = 50
      CONSTS(4) = 0.00001
      CONSTS(5) = 4e-6
      CONSTS(6) = 6e-7
      CONSTS(7) = 1e-7
      CONSTS(8) = 1e-7
      CONSTS(9) = 500
      CONSTS(10) = 1
      CONSTS(11) = 0.01
      CONSTS(12) = 100
      CONSTS(13) = 0.5
      CONSTS(14) = 0.5
      CONSTS(15) = 0.05
      CONSTS(16) = 0.08
      CONSTS(17) = 1000
      CONSTS(18) = 8.02e-9
      CONSTS(19) = 12
      CONSTS(20) = 0.02
      CONSTS(21) = 0.1
      CONSTS(22) = 0.00001
      CONSTS(23) = CONSTS(1)
      CONSTS(24) = CONSTS(21)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(2)*STATES(1)*STATES(12)
      ALGBRC(3) =  CONSTS(22)*STATES(12)
      RATES(12) = (ALGBRC(1)+CONSTS(24)) - (ALGBRC(1)+ALGBRC(3))
      ALGBRC(5) =  CONSTS(5)*STATES(3)*STATES(13)
      RATES(1) = (CONSTS(23)+ALGBRC(5)) - ALGBRC(1)
      ALGBRC(2) =  CONSTS(3)*STATES(2)*STATES(4)
      ALGBRC(4) =  CONSTS(4)*STATES(3)
      RATES(3) = ALGBRC(2) - (ALGBRC(4)+ALGBRC(5))
      ALGBRC(6) =  CONSTS(6)*STATES(2)*STATES(13)
      ALGBRC(7) =  CONSTS(7)*STATES(2)*STATES(2)
      RATES(2) = (ALGBRC(1)+ALGBRC(4)) - (ALGBRC(2)+ALGBRC(6)+ 2.00000*ALGBRC(7))
      ALGBRC(9) =  CONSTS(10)*STATES(5)
      ALGBRC(8) =  CONSTS(9)*STATES(6)*STATES(4)
      RATES(5) = ALGBRC(8) - ALGBRC(9)
      ALGBRC(10) =  CONSTS(8)*STATES(2)*STATES(11)
      RATES(11) = (ALGBRC(7)+ 2.00000*ALGBRC(10)) - ALGBRC(10)
      ALGBRC(15) =  CONSTS(14)*STATES(7)
      ALGBRC(13) =  CONSTS(13)*STATES(8)
      ALGBRC(11) =  CONSTS(11)*STATES(6)*STATES(6)
      ALGBRC(12) =  CONSTS(12)*STATES(7)*STATES(6)
      RATES(6) = (ALGBRC(9)+ 2.00000*ALGBRC(15)+ALGBRC(13)) - (ALGBRC(8)+ 2.00000*ALGBRC(11)+ALGBRC(12))
      RATES(7) = (ALGBRC(11)+ALGBRC(13)) - (ALGBRC(12)+ALGBRC(15))
      ALGBRC(14) =  CONSTS(15)*STATES(10)*STATES(8)
      ALGBRC(16) =  CONSTS(16)*STATES(9)
      RATES(8) = (ALGBRC(12)+ALGBRC(16)) - (ALGBRC(13)+ALGBRC(14))
      RATES(10) = ALGBRC(16) - ALGBRC(14)
      ALGBRC(17) =  CONSTS(17)*STATES(9)
      RATES(9) = (ALGBRC(14)+ALGBRC(17)) - (ALGBRC(16)+ALGBRC(17))
      ALGBRC(18) =  CONSTS(18)*STATES(4)*STATES(13)
      RATES(4) = (ALGBRC(5)+ALGBRC(4)+ALGBRC(9)+ALGBRC(17)) - (ALGBRC(2)+ALGBRC(8)+ALGBRC(18))
      ALGBRC(19) =  CONSTS(19)*STATES(14)
      ALGBRC(20) =  CONSTS(20)*STATES(13)
      RATES(13) = ALGBRC(19) - (ALGBRC(5)+ALGBRC(6)+ALGBRC(18)+ALGBRC(20))
      RATES(14) = (ALGBRC(5)+ALGBRC(6)+ALGBRC(18)+ALGBRC(20)) - ALGBRC(19)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(2)*STATES(1)*STATES(12)
      ALGBRC(3) =  CONSTS(22)*STATES(12)
      ALGBRC(5) =  CONSTS(5)*STATES(3)*STATES(13)
      ALGBRC(2) =  CONSTS(3)*STATES(2)*STATES(4)
      ALGBRC(4) =  CONSTS(4)*STATES(3)
      ALGBRC(6) =  CONSTS(6)*STATES(2)*STATES(13)
      ALGBRC(7) =  CONSTS(7)*STATES(2)*STATES(2)
      ALGBRC(9) =  CONSTS(10)*STATES(5)
      ALGBRC(8) =  CONSTS(9)*STATES(6)*STATES(4)
      ALGBRC(10) =  CONSTS(8)*STATES(2)*STATES(11)
      ALGBRC(15) =  CONSTS(14)*STATES(7)
      ALGBRC(13) =  CONSTS(13)*STATES(8)
      ALGBRC(11) =  CONSTS(11)*STATES(6)*STATES(6)
      ALGBRC(12) =  CONSTS(12)*STATES(7)*STATES(6)
      ALGBRC(14) =  CONSTS(15)*STATES(10)*STATES(8)
      ALGBRC(16) =  CONSTS(16)*STATES(9)
      ALGBRC(17) =  CONSTS(17)*STATES(9)
      ALGBRC(18) =  CONSTS(18)*STATES(4)*STATES(13)
      ALGBRC(19) =  CONSTS(19)*STATES(14)
      ALGBRC(20) =  CONSTS(20)*STATES(13)
      RETURN
      END