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 7 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is Ca_cyt in component Ca_cyt (micromolar).
C STATES(2) is J_ERch in component J_ERch (micromolar).
C STATES(3) is J_ERpump in component J_ERpump (micromolar).
C STATES(4) is J_ERleak in component J_ERleak (micromolar).
C STATES(5) is J_in in component J_in (micromolar).
C STATES(6) is J_out in component J_out (micromolar).
C STATES(7) is Ca_ER in component Ca_ER (micromolar).
C CONSTS(1) is K_ch in component J_ERch (micromolar).
C CONSTS(2) is k_ERch in component J_ERch (micromolar).
C CONSTS(3) is K_ERpump in component J_ERpump (micromolar).
C CONSTS(4) is K_ERleak in component J_ERleak (micromolar).
C CONSTS(5) is K_in in component J_in (micromolar).
C CONSTS(6) is K_out in component J_out (micromolar).
C RATES(1) is d/dt Ca_cyt in component Ca_cyt (micromolar).
C RATES(7) is d/dt Ca_ER in component Ca_ER (micromolar).
C RATES(2) is d/dt J_ERch in component J_ERch (micromolar).
C RATES(3) is d/dt J_ERpump in component J_ERpump (micromolar).
C RATES(4) is d/dt J_ERleak in component J_ERleak (micromolar).
C RATES(5) is d/dt J_in in component J_in (micromolar).
C RATES(6) is d/dt J_out in component J_out (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.1
      STATES(2) = 0.1
      STATES(3) = 0.1
      STATES(4) = 0.1
      STATES(5) = 0.1
      STATES(6) = 0.1
      STATES(7) = 0.1
      CONSTS(1) = 3
      CONSTS(2) = 0.1
      CONSTS(3) = 2
      CONSTS(4) = 0.01
      CONSTS(5) = 0.8
      CONSTS(6) = 1
      CONSTS(6) = CONSTS(5)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(5) = CONSTS(6)
      RATES(1) = ((STATES(2) - STATES(3))+STATES(4)+STATES(5)) - STATES(6)
      RATES(7) = (STATES(3) - STATES(4)) - STATES(2)
      RATES(2) =  (( CONSTS(2)*STATES(1) ** 4.00000)/(CONSTS(1) ** 4.00000+STATES(1) ** 4.00000))*STATES(7)
      RATES(3) =  CONSTS(3)*STATES(1)
      RATES(4) =  CONSTS(4)*STATES(7)
      RATES(6) = ( CONSTS(6)*STATES(1))/1.00000
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END