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 0 entries in the algebraic variable array.
C There are a total of 7 entries in each of the rate and state variable arrays.
C There are a total of 27 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is G_a in component G_a (micromolar).
C CONSTS(1) is k1 in component model_parameters (dimensionless).
C CONSTS(2) is k2 in component model_parameters (dimensionless).
C CONSTS(3) is k3 in component model_parameters (dimensionless).
C STATES(2) is PLC in component PLC (micromolar).
C STATES(3) is Ca_cyt in component Ca_cyt (micromolar).
C CONSTS(4) is K4 in component model_parameters (dimensionless).
C CONSTS(5) is k5 in component model_parameters (dimensionless).
C CONSTS(6) is K6 in component model_parameters (dimensionless).
C CONSTS(7) is k7 in component model_parameters (dimensionless).
C CONSTS(8) is k8 in component model_parameters (dimensionless).
C CONSTS(9) is K9 in component model_parameters (dimensionless).
C STATES(4) is Ca_ER in component Ca_ER (micromolar).
C CONSTS(10) is k10 in component model_parameters (dimensionless).
C CONSTS(11) is K11 in component model_parameters (dimensionless).
C CONSTS(12) is k16 in component model_parameters (dimensionless).
C CONSTS(13) is K17 in component model_parameters (dimensionless).
C STATES(5) is Ca_mit in component Ca_mit (micromolar).
C CONSTS(14) is k18 in component model_parameters (dimensionless).
C CONSTS(15) is K19 in component model_parameters (dimensionless).
C CONSTS(16) is k20 in component model_parameters (dimensionless).
C CONSTS(17) is K21 in component model_parameters (dimensionless).
C CONSTS(18) is k12 in component model_parameters (dimensionless).
C CONSTS(19) is k13 in component model_parameters (dimensionless).
C CONSTS(20) is k14 in component model_parameters (dimensionless).
C CONSTS(21) is K15 in component model_parameters (dimensionless).
C STATES(6) is Enz in component Enz (micromolar).
C CONSTS(22) is k_act in component Enz (dimensionless).
C CONSTS(23) is K_M in component Enz (dimensionless).
C CONSTS(24) is k_inact in component Enz (dimensionless).
C CONSTS(25) is p in component Enz (dimensionless).
C STATES(7) is Pro in component Pro (micromolar).
C CONSTS(26) is k_enz in component Pro (dimensionless).
C CONSTS(27) is k_rem in component Pro (dimensionless).
C RATES(1) is d/dt G_a in component G_a (micromolar).
C RATES(2) is d/dt PLC in component PLC (micromolar).
C RATES(4) is d/dt Ca_ER in component Ca_ER (micromolar).
C RATES(5) is d/dt Ca_mit in component Ca_mit (micromolar).
C RATES(3) is d/dt Ca_cyt in component Ca_cyt (micromolar).
C RATES(6) is d/dt Enz in component Enz (micromolar).
C RATES(7) is d/dt Pro in component Pro (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.01
      CONSTS(1) = 0.55
      CONSTS(2) = 0
      CONSTS(3) = 0.0001
      STATES(2) = 0.01
      STATES(3) = 0.01
      CONSTS(4) = 0.783
      CONSTS(5) = 1.24
      CONSTS(6) = 0.7
      CONSTS(7) = 5.82
      CONSTS(8) = 32.24
      CONSTS(9) = 29.09
      STATES(4) = 10
      CONSTS(10) = 0.93
      CONSTS(11) = 2.667
      CONSTS(12) = 20.9
      CONSTS(13) = 0.05
      STATES(5) = 0.001
      CONSTS(14) = 79
      CONSTS(15) = 2
      CONSTS(16) = 1.5
      CONSTS(17) = 1.5
      CONSTS(18) = 0.76
      CONSTS(19) = 0
      CONSTS(20) = 149
      CONSTS(21) = 0.16
      STATES(6) = 0
      CONSTS(22) = 0.1
      CONSTS(23) = 0.02
      CONSTS(24) = 0.043
      CONSTS(25) = 4
      STATES(7) = 0
      CONSTS(26) = 3
      CONSTS(27) = 3
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = ((CONSTS(1)+ CONSTS(2)*STATES(1)) - ( CONSTS(3)*STATES(1)*STATES(2))/(STATES(1)+CONSTS(4))) - ( CONSTS(5)*STATES(3)*STATES(1))/(STATES(1)+CONSTS(6))
      RATES(2) =  CONSTS(7)*STATES(1) - ( CONSTS(8)*STATES(2))/(STATES(2)+CONSTS(9))
      RATES(4) =  - (STATES(4) - STATES(3))*(( CONSTS(10)*STATES(3)*STATES(2) ** 4.00000)/(STATES(2) ** 4.00000+CONSTS(11) ** 4.00000))+( CONSTS(12)*STATES(3))/(STATES(3)+CONSTS(13))
      RATES(5) = ( CONSTS(14)*STATES(3) ** 8.00000)/(CONSTS(15) ** 8.00000+STATES(3) ** 8.00000) -  (STATES(5) - STATES(3))*(( CONSTS(16)*STATES(3))/(STATES(3)+CONSTS(17)))
      RATES(3) = (((( (STATES(4) - STATES(3))*(( CONSTS(10)*STATES(3)*STATES(2) ** 4.00000)/(STATES(2) ** 4.00000+CONSTS(11) ** 4.00000))+ CONSTS(18)*STATES(2)+ CONSTS(19)*STATES(1)) - ( CONSTS(20)*STATES(3))/(CONSTS(21)+STATES(3))) - ( CONSTS(12)*STATES(3))/(CONSTS(13)+STATES(3))) - ( CONSTS(14)*STATES(3) ** 8.00000)/(CONSTS(15) ** 8.00000+STATES(3) ** 8.00000))+ (STATES(5) - STATES(3))*(( CONSTS(16)*STATES(3))/(STATES(3)+CONSTS(17)))
      RATES(6) = ( CONSTS(22)*STATES(3) ** CONSTS(25))/(CONSTS(23) ** CONSTS(25)+STATES(3) ** CONSTS(25)) -  CONSTS(24)*STATES(6)
      RATES(7) =  CONSTS(26)*STATES(6) -  CONSTS(27)*STATES(7)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END