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 2 entries in the algebraic variable array.
C There are a total of 2 entries in each of the rate and state variable arrays.
C There are a total of 13 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C CONSTS(1) is v0 in component parameters (micromolar_s).
C CONSTS(2) is v1 in component parameters (micromolar_s).
C ALGBRC(1) is v2 in component parameters (micromolar_s).
C ALGBRC(2) is v3 in component parameters (micromolar_s).
C CONSTS(3) is beta in component parameters (dimensionless).
C CONSTS(4) is VM2 in component parameters (micromolar_s).
C CONSTS(5) is VM3 in component parameters (micromolar_s).
C CONSTS(6) is KR in component parameters (micromolar).
C CONSTS(7) is KA in component parameters (micromolar).
C CONSTS(8) is kf in component parameters (per_second).
C CONSTS(9) is k in component parameters (per_second).
C CONSTS(10) is K2 in component parameters (micromolar).
C CONSTS(11) is n in component parameters (dimensionless).
C CONSTS(12) is m in component parameters (dimensionless).
C CONSTS(13) is p in component parameters (dimensionless).
C STATES(1) is Z in component cytosol (micromolar).
C STATES(2) is Y in component insensitive_pool (micromolar).
C RATES(1) is d/dt Z in component cytosol (micromolar).
C RATES(2) is d/dt Y in component insensitive_pool (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 1
      CONSTS(2) = 7.3
      CONSTS(3) = 0.6
      CONSTS(4) = 65
      CONSTS(5) = 500
      CONSTS(6) = 2
      CONSTS(7) = 0.9
      CONSTS(8) = 1
      CONSTS(9) = 10
      CONSTS(10) = 1
      CONSTS(11) = 2
      CONSTS(12) = 2
      CONSTS(13) = 4
      STATES(1) = 0.52
      STATES(2) = 0.93
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = ( CONSTS(4)*STATES(1) ** CONSTS(11))/(CONSTS(10) ** CONSTS(11)+STATES(1) ** CONSTS(11))
      ALGBRC(2) =  CONSTS(5)*(STATES(2) ** CONSTS(12)/(CONSTS(6) ** CONSTS(12)+STATES(2) ** CONSTS(12)))*(STATES(1) ** CONSTS(13)/(CONSTS(7) ** CONSTS(13)+STATES(1) ** CONSTS(13)))
      RATES(1) = (((CONSTS(1)+ CONSTS(2)*CONSTS(3)) - ALGBRC(1))+ALGBRC(2)+ CONSTS(8)*STATES(2)) -  CONSTS(9)*STATES(1)
      RATES(2) = (ALGBRC(1) - ALGBRC(2)) -  CONSTS(8)*STATES(2)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = ( CONSTS(4)*STATES(1) ** CONSTS(11))/(CONSTS(10) ** CONSTS(11)+STATES(1) ** CONSTS(11))
      ALGBRC(2) =  CONSTS(5)*(STATES(2) ** CONSTS(12)/(CONSTS(6) ** CONSTS(12)+STATES(2) ** CONSTS(12)))*(STATES(1) ** CONSTS(13)/(CONSTS(7) ** CONSTS(13)+STATES(1) ** CONSTS(13)))
      RETURN
      END