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 2 entries in each of the rate and state variable arrays.
C There are a total of 6 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is Xi in component Xi (nanomolar).
C CONSTS(1) is ai in component Xi (flux).
C CONSTS(2) is bi in component Xi (flux).
C CONSTS(3) is Ai in component Xi (dimensionless).
C CONSTS(4) is ki in component Xi (per_nanomolar).
C STATES(2) is Yi in component Yi (nanomolar).
C CONSTS(5) is beta_i in component Yi (flux).
C CONSTS(6) is alpha_i in component Yi (first_order_rate_constant).
C RATES(1) is d/dt Xi in component Xi (nanomolar).
C RATES(2) is d/dt Yi in component Yi (nanomolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 7
      CONSTS(1) = 72
      CONSTS(2) = 2
      CONSTS(3) = 36
      CONSTS(4) = 1
      STATES(2) = -10
      CONSTS(5) = 0
      CONSTS(6) = 1
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = CONSTS(1)/(CONSTS(3)+ CONSTS(4)*STATES(2)) - CONSTS(2)
      RATES(2) =  CONSTS(6)*STATES(1) - CONSTS(5)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END