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 6 entries in each of the rate and state variable arrays.
C There are a total of 8 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is Ca in component Ca (micromolar).
C CONSTS(1) is k1 in component reaction_constants (second_order_rate_constant).
C CONSTS(2) is k1_ in component reaction_constants (first_order_rate_constant).
C CONSTS(3) is k2 in component reaction_constants (second_order_rate_constant).
C CONSTS(4) is k2_ in component reaction_constants (first_order_rate_constant).
C STATES(2) is Fluo in component Fluo (micromolar).
C STATES(3) is CaFluo in component CaFluo (micromolar).
C STATES(4) is CaPrFluo in component CaPrFluo (micromolar).
C STATES(5) is PrFluo in component PrFluo (micromolar).
C CONSTS(5) is k3 in component reaction_constants (second_order_rate_constant).
C CONSTS(6) is k3_ in component reaction_constants (first_order_rate_constant).
C STATES(6) is Pr in component Pr (micromolar).
C CONSTS(7) is k4 in component reaction_constants (second_order_rate_constant).
C CONSTS(8) is k4_ in component reaction_constants (first_order_rate_constant).
C RATES(1) is d/dt Ca in component Ca (micromolar).
C RATES(2) is d/dt Fluo in component Fluo (micromolar).
C RATES(6) is d/dt Pr in component Pr (micromolar).
C RATES(5) is d/dt PrFluo in component PrFluo (micromolar).
C RATES(3) is d/dt CaFluo in component CaFluo (micromolar).
C RATES(4) is d/dt CaPrFluo in component CaPrFluo (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.05
      CONSTS(1) = 2.676E14
      CONSTS(2) = 137.0
      CONSTS(3) = 1.72E13
      CONSTS(4) = 32.9
      STATES(2) = 11.88
      STATES(3) = 0.01
      STATES(4) = 0.01
      STATES(5) = 88.12
      CONSTS(5) = 0.1149E14
      CONSTS(6) = 4216.0
      STATES(6) = 3000.0
      CONSTS(7) = 0.1149E14
      CONSTS(8) = 15777.0
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = ( CONSTS(2)*STATES(3)+ CONSTS(4)*STATES(4)) - ( CONSTS(1)*STATES(1)*STATES(2)+ CONSTS(3)*STATES(1)*STATES(5))
      RATES(2) = ( CONSTS(6)*STATES(5)+ CONSTS(2)*STATES(3)) - ( CONSTS(5)*STATES(6)*STATES(2)+ CONSTS(1)*STATES(1)*STATES(2))
      RATES(6) = ( CONSTS(8)*STATES(4)+ CONSTS(6)*STATES(5)) - ( CONSTS(7)*STATES(6)*STATES(3)+ CONSTS(5)*STATES(6)*STATES(2))
      RATES(5) = ( CONSTS(5)*STATES(6)*STATES(2)+ CONSTS(4)*STATES(4)) - ( CONSTS(6)*STATES(5)+ CONSTS(3)*STATES(1)*STATES(5))
      RATES(3) = ( CONSTS(1)*STATES(1)*STATES(2)+ CONSTS(8)*STATES(4)) - ( CONSTS(2)*STATES(3)+ CONSTS(7)*STATES(6)*STATES(3))
      RATES(4) = ( CONSTS(7)*STATES(6)*STATES(3)+ CONSTS(3)*STATES(1)*STATES(5)) - ( CONSTS(8)*STATES(4)+ CONSTS(4)*STATES(4))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END