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 3 entries in each of the rate and state variable arrays.
C There are a total of 8 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is X1 in component X1 (nanomolar).
C CONSTS(1) is a1 in component X1 (flux).
C CONSTS(2) is b1 in component X1 (first_order_rate_constant).
C CONSTS(3) is A1 in component X1 (dimensionless).
C CONSTS(4) is k1 in component X1 (per_nanomolar).
C STATES(2) is Z1 in component Z1 (nanomolar).
C STATES(3) is Y1 in component Y1 (nanomolar).
C CONSTS(5) is beta_1 in component Y1 (first_order_rate_constant).
C CONSTS(6) is alpha_1 in component Y1 (first_order_rate_constant).
C CONSTS(7) is gamma_1 in component Z1 (first_order_rate_constant).
C CONSTS(8) is delta_1 in component Z1 (first_order_rate_constant).
C RATES(1) is d/dt X1 in component X1 (nanomolar).
C RATES(3) is d/dt Y1 in component Y1 (nanomolar).
C RATES(2) is d/dt Z1 in component Z1 (nanomolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 7
CONSTS(1) = 360
CONSTS(2) = 1
CONSTS(3) = 43
CONSTS(4) = 1
STATES(2) = 0
STATES(3) = 0
CONSTS(5) = 0.6
CONSTS(6) = 1
CONSTS(7) = 1
CONSTS(8) = 0.8
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)*STATES(1)
RATES(3) = CONSTS(6)*STATES(1) - CONSTS(5)*STATES(3)
RATES(2) = CONSTS(7)*STATES(3) - CONSTS(8)*STATES(2)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
