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 8 entries in the algebraic variable array.
C There are a total of 4 entries in each of the rate and state variable arrays.
C There are a total of 17 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is Ca_cyt in component Ca_cyt (micromolar).
C ALGBRC(1) is J_ERch in component J_ERch (micromolar).
C ALGBRC(4) is J_ERpump in component J_ERpump (micromolar).
C ALGBRC(7) is J_in in component J_in (micromolar).
C ALGBRC(8) is J_out in component J_out (micromolar).
C STATES(2) is Ca_ER in component Ca_ER (micromolar).
C STATES(3) is PLC in component PLC (micromolar).
C ALGBRC(2) is J_PLCact in component J_PLCact (micromolar).
C ALGBRC(5) is J_PLCinact in component J_PLCinact (micromolar).
C STATES(4) is G_alpha in component G_alpha (micromolar).
C ALGBRC(3) is J_actG_alpha in component J_actG_alpha (micromolar).
C ALGBRC(6) is J_inactG_alpha in component J_inactG_alpha (micromolar).
C CONSTS(1) is k_10 in component J_ERch (dimensionless).
C CONSTS(2) is K_11 in component J_ERch (dimensionless).
C CONSTS(3) is K_17 in component J_ERpump (dimensionless).
C CONSTS(4) is k_16 in component J_ERpump (dimensionless).
C CONSTS(5) is K_12 in component J_in (dimensionless).
C CONSTS(6) is k_13 in component J_in (dimensionless).
C CONSTS(7) is k_14 in component J_out (dimensionless).
C CONSTS(8) is K_15 in component J_out (dimensionless).
C CONSTS(9) is k_7 in component J_PLCact (dimensionless).
C CONSTS(10) is k_8 in component J_PLCinact (dimensionless).
C CONSTS(11) is K_9 in component J_PLCinact (dimensionless).
C CONSTS(12) is k_1 in component J_actG_alpha (dimensionless).
C CONSTS(13) is k_2 in component J_actG_alpha (dimensionless).
C CONSTS(14) is k_3 in component J_inactG_alpha (dimensionless).
C CONSTS(15) is K_4 in component J_inactG_alpha (dimensionless).
C CONSTS(16) is k_5 in component J_inactG_alpha (dimensionless).
C CONSTS(17) is K_6 in component J_inactG_alpha (dimensionless).
C RATES(1) is d/dt Ca_cyt in component Ca_cyt (micromolar).
C RATES(2) is d/dt Ca_ER in component Ca_ER (micromolar).
C RATES(3) is d/dt PLC in component PLC (micromolar).
C RATES(4) is d/dt G_alpha in component G_alpha (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.01
      STATES(2) = 20
      STATES(3) = 0.01
      STATES(4) = 0.01
      CONSTS(1) = 5
      CONSTS(2) = 3
      CONSTS(3) = 0.05
      CONSTS(4) = 5.37
      CONSTS(5) = 2.8
      CONSTS(6) = 13.4
      CONSTS(7) = 153
      CONSTS(8) = 0.16
      CONSTS(9) = 2.08
      CONSTS(10) = 32.24
      CONSTS(11) = 29.09
      CONSTS(12) = 0.01
      CONSTS(13) = 0.1
      CONSTS(14) = 0.64
      CONSTS(15) = 0.09
      CONSTS(16) = 4.88
      CONSTS(17) = 1.18
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(1)*STATES(1)*STATES(3)*(STATES(2)/(CONSTS(2)+STATES(2)))
      ALGBRC(4) =  CONSTS(4)*(STATES(1)/(CONSTS(3)+STATES(2)))
      RATES(2) =  (ALGBRC(4) - ALGBRC(1))*1.00000
      ALGBRC(2) =  CONSTS(9)*STATES(4)
      ALGBRC(5) =  CONSTS(10)*(STATES(3)/(CONSTS(11)+STATES(3)))
      RATES(3) =  (ALGBRC(2) - ALGBRC(5))*1.00000
      ALGBRC(3) = CONSTS(12)+ CONSTS(13)*STATES(4)
      ALGBRC(6) =  CONSTS(14)*STATES(3)*(STATES(4)/(CONSTS(15)+STATES(4)))+ CONSTS(16)*STATES(1)*(STATES(4)/(CONSTS(17)+STATES(4)))
      RATES(4) =  (ALGBRC(3) - ALGBRC(6))*1.00000
      ALGBRC(7) =  CONSTS(5)*STATES(3)+ CONSTS(6)*STATES(4)
      ALGBRC(8) =  CONSTS(7)*(STATES(1)/(CONSTS(8)+STATES(1)))
      RATES(1) =  (((ALGBRC(1) - ALGBRC(4))+ALGBRC(7)) - ALGBRC(8))*1.00000
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(1)*STATES(1)*STATES(3)*(STATES(2)/(CONSTS(2)+STATES(2)))
      ALGBRC(4) =  CONSTS(4)*(STATES(1)/(CONSTS(3)+STATES(2)))
      ALGBRC(2) =  CONSTS(9)*STATES(4)
      ALGBRC(5) =  CONSTS(10)*(STATES(3)/(CONSTS(11)+STATES(3)))
      ALGBRC(3) = CONSTS(12)+ CONSTS(13)*STATES(4)
      ALGBRC(6) =  CONSTS(14)*STATES(3)*(STATES(4)/(CONSTS(15)+STATES(4)))+ CONSTS(16)*STATES(1)*(STATES(4)/(CONSTS(17)+STATES(4)))
      ALGBRC(7) =  CONSTS(5)*STATES(3)+ CONSTS(6)*STATES(4)
      ALGBRC(8) =  CONSTS(7)*(STATES(1)/(CONSTS(8)+STATES(1)))
      RETURN
      END