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 12 entries in the constant variable array.
C
C
C VOI is time in component environment (day).
C STATES(1) is A in component A (dimensionless).
C CONSTS(1) is v_tilday in component A (first_order_rate_constant).
C CONSTS(2) is f in component A (dimensionless).
C CONSTS(3) is muA in component A (first_order_rate_constant).
C STATES(2) is G in component G (dimensionless).
C STATES(3) is R in component R (dimensionless).
C CONSTS(4) is pi3 in component R (first_order_rate_constant).
C CONSTS(5) is beta in component R (first_order_rate_constant).
C CONSTS(6) is muR in component R (first_order_rate_constant).
C STATES(4) is E in component E (dimensionless).
C CONSTS(7) is lambdaE in component E (first_order_rate_constant).
C CONSTS(8) is muE in component E (first_order_rate_constant).
C CONSTS(9) is sigma3 in component E (first_order_rate_constant).
C CONSTS(10) is b3 in component E (first_order_rate_constant).
C CONSTS(11) is gamma in component G (first_order_rate_constant).
C CONSTS(12) is muG in component G (first_order_rate_constant).
C RATES(1) is d/dt A in component A (dimensionless).
C RATES(3) is d/dt R in component R (dimensionless).
C RATES(4) is d/dt E in component E (dimensionless).
C RATES(2) is d/dt G in component G (dimensionless).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 1.0
      CONSTS(1) = 0.0025
      CONSTS(2) = 1e-4
      CONSTS(3) = 0.25
      STATES(2) = 1e8
      STATES(3) = 0.0
      CONSTS(4) = 0.0256
      CONSTS(5) = 200.0
      CONSTS(6) = 0.25
      STATES(4) = 0.0
      CONSTS(7) = 1000.0
      CONSTS(8) = 0.25
      CONSTS(9) = 3e-6
      CONSTS(10) = 0.25
      CONSTS(11) = 2000.0
      CONSTS(12) = 5.0
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) =  CONSTS(2)*CONSTS(1)*STATES(2) -  CONSTS(3)*STATES(1)
      RATES(3) =  ( CONSTS(4)*STATES(4)+CONSTS(5))*STATES(1) -  CONSTS(6)*STATES(3)
      RATES(4) =  CONSTS(7)*STATES(1) - ( ( CONSTS(9)*STATES(3)+CONSTS(10))*STATES(4)+ CONSTS(8)*STATES(4))
      RATES(2) =  CONSTS(11)*STATES(4) - ( CONSTS(1)*STATES(2)+ CONSTS(12)*STATES(2))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END