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 13 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 in component A (first_order_rate_constant).
C CONSTS(2) is k in component A (dimensionless).
C CONSTS(3) is f in component A (dimensionless).
C CONSTS(4) is sigma1 in component A (first_order_rate_constant).
C CONSTS(5) is b1 in component A (first_order_rate_constant).
C CONSTS(6) 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(7) is pi1 in component R (first_order_rate_constant).
C CONSTS(8) is beta in component R (first_order_rate_constant).
C CONSTS(9) is muR in component R (first_order_rate_constant).
C STATES(4) is E in component E (dimensionless).
C CONSTS(10) is lambdaE in component E (first_order_rate_constant).
C CONSTS(11) is muE in component E (first_order_rate_constant).
C CONSTS(12) is gamma in component G (first_order_rate_constant).
C CONSTS(13) 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) = 1.25e5
CONSTS(2) = 5e7
CONSTS(3) = 1e-4
CONSTS(4) = 3e-6
CONSTS(5) = 0.25
CONSTS(6) = 0.25
STATES(2) = 1e8
STATES(3) = 0.0
CONSTS(7) = 0.016
CONSTS(8) = 200.0
CONSTS(9) = 0.25
STATES(4) = 0.0
CONSTS(10) = 1000.0
CONSTS(11) = 0.25
CONSTS(12) = 2000.0
CONSTS(13) = 5.0
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = ( CONSTS(3)*CONSTS(1)*STATES(2))/(CONSTS(2)+STATES(2)) - ( ( CONSTS(4)*STATES(3)+CONSTS(5))*STATES(1)+ CONSTS(6)*STATES(1))
RATES(3) = ( CONSTS(7)*STATES(4)+CONSTS(8))*STATES(1) - CONSTS(9)*STATES(3)
RATES(4) = CONSTS(10)*STATES(1) - CONSTS(11)*STATES(4)
RATES(2) = CONSTS(12)*STATES(4) - (( CONSTS(1)*STATES(2))/(CONSTS(2)+STATES(2))+ CONSTS(13)*STATES(2))
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
