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 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 (second).
C STATES(1) is a in component a (micromolar).
C CONSTS(1) is k1 in component model_parameters (dimensionless).
C CONSTS(2) is k2 in component model_parameters (dimensionless).
C CONSTS(3) is k3 in component model_parameters (dimensionless).
C STATES(2) is b in component b (micromolar).
C STATES(3) is c in component c (micromolar).
C CONSTS(4) is K4 in component model_parameters (dimensionless).
C CONSTS(5) is k5 in component model_parameters (dimensionless).
C CONSTS(6) is K6 in component model_parameters (dimensionless).
C CONSTS(7) is k7 in component model_parameters (dimensionless).
C CONSTS(8) is k8 in component model_parameters (dimensionless).
C CONSTS(9) is K9 in component model_parameters (dimensionless).
C CONSTS(10) is k10 in component model_parameters (dimensionless).
C STATES(4) is d in component d (micromolar).
C CONSTS(11) is K11 in component model_parameters (dimensionless).
C CONSTS(12) is k12 in component model_parameters (dimensionless).
C CONSTS(13) is k13 in component model_parameters (dimensionless).
C CONSTS(14) is k14 in component model_parameters (dimensionless).
C CONSTS(15) is K15 in component model_parameters (dimensionless).
C CONSTS(16) is k16 in component model_parameters (dimensionless).
C CONSTS(17) is K17 in component model_parameters (dimensionless).
C RATES(1) is d/dt a in component a (micromolar).
C RATES(2) is d/dt b in component b (micromolar).
C RATES(3) is d/dt c in component c (micromolar).
C RATES(4) is d/dt d in component d (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.01
      CONSTS(1) = 0.09
      CONSTS(2) = 1.3
      CONSTS(3) = 0.64
      STATES(2) = 0.01
      STATES(3) = 0.01
      CONSTS(4) = 0.19
      CONSTS(5) = 4.88
      CONSTS(6) = 0.64
      CONSTS(7) = 2.08
      CONSTS(8) = 32.24
      CONSTS(9) = 29.09
      CONSTS(10) = 5
      STATES(4) = 0.01
      CONSTS(11) = 2.67
      CONSTS(12) = 0.7
      CONSTS(13) = 13.58
      CONSTS(14) = 153
      CONSTS(15) = 0.16
      CONSTS(16) = 4.85
      CONSTS(17) = 0.05
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = ((CONSTS(1)+ CONSTS(2)*STATES(1)) - ( CONSTS(3)*STATES(1)*STATES(2))/(STATES(1)+CONSTS(4))) - ( CONSTS(5)*STATES(1)*STATES(3))/(STATES(1)+CONSTS(6))
      RATES(2) =  CONSTS(7)*STATES(1) - ( CONSTS(8)*STATES(2))/(STATES(2)+CONSTS(9))
      RATES(3) = ((( CONSTS(10)*STATES(3)*STATES(2)*STATES(4))/(STATES(4)+CONSTS(11))+ CONSTS(12)*STATES(2)+ CONSTS(13)*STATES(1)) - ( CONSTS(14)*STATES(3))/(STATES(3)+CONSTS(15))) - ( CONSTS(16)*STATES(3))/(STATES(3)+CONSTS(17))
      RATES(4) = ( - CONSTS(10)*STATES(3)*STATES(2)*STATES(4))/(STATES(4)+CONSTS(11))+( CONSTS(16)*STATES(3))/(STATES(3)+CONSTS(17))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END